cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: unable to Retrieve desired page

From: Brian Dessent <brian_at_dessent.net>
Date: Thu, 18 Oct 2007 23:19:43 -0700

> "Yedidi, Santhosh" wrote:

> curl
> 'http://wikimapia.org/#lat=22.454187&lon=88.209229&z=13&l=0&m=m&v=1'
> –L -o 1.html

You're missing the fact that all of those parameters come after a #.
That means it's not actually part of the URL; the page that is being
fetched by the browser is in fact just "http://wikimapia.org/" and curl
is doing the same thing.

The reason that you see a map in your browser is because the page
contains a great deal of javascript which reads the parameters inside
the location fragment (location.hash) and acts accordingly. But try
viewing the same URL in a browser with javascript disabled and you will
see that you're just loading the root page of wikimapia.org and nothing
else. curl can only perform HTTP requests, it cannot parse HTML or
execute javascript, so you need to re-evaluate what you hope to
accomplish here.

Brian
Received on 2007-10-19