curl-and-php
Re[6]: Sessions in CURL
Date: Tue, 12 Jun 2001 11:06:29 +0300
Hello Daniel,
Monday, June 11, 2001, 5:29:55 PM, you wrote:
DS> 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.
DS> If you set the referer field, it will look to the server as if you came from
DS> 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?
DS> Not just a header, a cookie header. But curl can take care of that if you
DS> 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.
DS> Yes, you can send as many requests you want. They will even re-use the same
DS> connection(s) as much as possible.
>> If is possible. Is session retained by the second request if I call it
>> with CURLOPT_COOKIEFILE option ???
DS> Yes, all requests using the same curl handle will store/use all cookies.
I tried to call two times the same page consecutivly in the same CURL
session but. Everytime I have the result
Fatal error: Maximum execution time of 30 seconds exceeded in
c:\wwwroot\page\form.php on line 59
In spite of my string:
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
The algorithm I do is:
curl_init();
...
CURL_OPTIONS (#1) //I call page first time
...
curl_exec();
...
CURL_OPTIONS (#2) //I call the same page second time
...
curl_exec();
curl_close();
Than I call the page only once it works very fine.
Two times make troubles.
Please help me.
-- Best regards, Vladimir mailto:vladkalmik_at_yahoo.com _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Curl-and-php mailing list http://curl.haxx.se/Received on 2001-06-12