curl-and-php
Re: Re[4]: Sessions in CURL
Date: Mon, 11 Jun 2001 16:29:55 +0200 (MET DST)
On Mon, 11 Jun 2001, Vladimir wrote:
> OK. But can I call another page on my server with <form
> action="https://secure.server.com/form.asp"> and than I will submit this
> form I want to make server thinking that this form is sent from its own
> page.
If you set the referer field, it will look to the server as if you came from
that form page.
> Do I have to send a header or so with content "ASPSSID....=
> HHTRRDHSBJHB..." or it is possible to solve this question in other mode?
Not just a header, a cookie header. But curl can take care of that if you
enable the cookie parser first.
> Can I call CURL one more time in the same file after a sent a request and
> send the another request further.
Yes, you can send as many requests you want. They will even re-use the same
connection(s) as much as possible.
> If is possible. Is session retained by the second request if I call it
> with CURLOPT_COOKIEFILE option ???
Yes, all requests using the same curl handle will store/use all cookies.
-- Daniel Stenberg -- curl dude -- http://curl.haxx.se/ _______________________________________________ Curl-and-php mailing list http://curl.haxx.se/Received on 2001-06-11