cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re[4]: Sessions in CURL

From: Vladimir <vladkalmik_at_yahoo.com>
Date: Mon, 11 Jun 2001 16:28:15 +0300

Hello Daniel,

Monday, June 11, 2001, 2:23:09 PM, you wrote:

DS> On Mon, 11 Jun 2001, Vladimir wrote:

>> How can I store cookies into a file (In binary curl I have to do -D
>> somefile.txt) What is the same command in builded into PHP CURL module (I
>> see only CURLOPT_COOKIEFILE but it can only pass cookies but not create
>> and store cookies)

DS> Now, this is an issue about the PHP-interface functionality. It is a bit out
DS> of the areas I think I master, but I can tell you some basics around this, so
DS> that other might fill in the blanks:

DS> Storing cookies with -D from the command line tool is about saving the
DS> headers. The libcurl interface allows the client to specify a specific
DS> callback and/or userdata for headers, that makes this possible. You need to
DS> consult the PHP-CURL docs in order to find the details around this.

DS> The CURLOPT_COOKIEFILE option will enable the "cookie parser" even if you
DS> specify a non-existant file. libcurl will then record and parse all incoming
DS> cookies and send them back on the following requests (that uses the same
DS> handle) when they match (domain, path etc). You don't have to store them in
DS> files and read them back for this to work.

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.
Do I have to send a header or so with content "ASPSSID....=
HHTRRDHSBJHB..." or it is possible to solve this question in other
mode?
This is a HTML solution of my promlem.

Through CURL.
Can I call CURL one more time in the same file after a sent a request
and send the another request further.
If is possible. Is session retained by the second request if I call
it with CURLOPT_COOKIEFILE option ???

-- 
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-11