curl-and-php
Re: CURL and cookies
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 30 May 2006 10:27:12 +0200 (CEST)
Date: Tue, 30 May 2006 10:27:12 +0200 (CEST)
On Tue, 30 May 2006, Amaury Willemant wrote:
> $_GET & $_POST are exactly the same in the two cases (I tested it with
> WinMerge) but only the HTML FORM works when I submit it. That's why I
> thought it was a cookie problem. If it is not a cookie problem, how the
> website "https://intrapril.april.fr" can do to reject me in the curl case ?
My advice:
1. record a "manual" session with LiveHTTPHeaders
2. repeat the operation in step 1 using the command line curl tool, make the
requests as similar as possible to how the original ones from step 1 look.
3. When step 2 works, translate to PHP
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2006-05-30