cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: Easy "POST" question but cannot figure it out!!

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 15 Nov 2007 10:16:20 +0100 (CET)

On Wed, 14 Nov 2007, jon_at_linertia.com wrote:

Please don't top-post or full-quote, as the netiquette for this mailing list
says.

> curl -c cookie -d "email=email%40email.com&password=pass&login=Log+in"
> http://www.example.com/forum/login

Right, but since you used LiveHTTPHeaders you should be able to tell if
perhaps the site provides a cookie when it presents the form (on a GET), and
then assumes you to provide them when you send the POST. Thus, you'd need to
do two requests. Lots of sites and servers do this, and the logs will tell you
the details.

If you send the very same requests (notice the pluralis here) the browser did,
you WILL succeed. The problems happen when you take unwise shortcuts and/or
don't do the same sequence.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-11-15

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET