cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Unable to capture required page.

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 7 Sep 2004 14:11:50 +0200 (CEST)

On Tue, 7 Sep 2004, Sagar Saibi wrote:

> When I am using the below url in a browser it takes me to the required page.
> But when I am using it with curl I am not getting the required page.

1. Use LiveHTTPHeaders to track what your browser does.

2. Inspect the headers/body you get back in responses.

Now, the first page that returns is basicly a single javascript that sends a
POST. curl doesn't support javascript. You need to write a script that parses
that page and sends off that POST (and I would suggest you include cookies and
correct referer etc).

This method is commonly used by sites that try to prevent what you're trying
to do.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-09-07