curl-library
COOKIE Promlem (fwd)
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 22 Apr 2002 09:53:00 +0200 (MET DST)
Date: Mon, 22 Apr 2002 09:53:00 +0200 (MET DST)
I'm forwarding your question to the libcurl mailing list. Please keep
libcurl-related questions and follow-ups there.
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/ ---------- Forwarded message ---------- Date: Mon, 22 Apr 2002 00:40:40 +0300 From: Vladimir <php_at_abadonstudio.com> To: daniel_at_haxx.se Subject: COOKIE Promlem Hello Daniel, The problem is: $cookie="6F33F9C61B68ACA7991F656C88CEEF72=V002CRLPEHYAD7AB9EZKRHGU6HC43E7U7CTN"; Cookie seems to be too long. the script below does not understand it and return nothing. If I remove only one chars from the cookie string, the script below works well. Tell me what is the problem with my script Do I do something wrong or that is really a problem ?? Here is the script: $cookie="6F33F9C61B68ACA7991F656C88CEEF72=V002CRLPEHYAD7AB9EZKRHGU6HC43E7U7CTN"; $URL="http://www.try.md/"; $request="type=12"; $ch=curl_init(); curl_setopt ($ch,CURLOPT_TIMEOUT,60); curl_setopt ($ch,CURLOPT_POST,1); curl_setopt ($ch,CURLOPT_URL,$URL); curl_setopt ($ch,CURLOPT_POSTFIELDS,$request); curl_setopt ($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt ($ch,CURLOPT_HEADER,1); curl_setopt ($ch,CURLOPT_FOLLOWLOCATION,1); curl_setopt ($ch,CURLOPT_USERAGENT,"Mozilla/4.0"); curl_setopt ($ch,CURLOPT_COOKIEFILE,"111.txt"); curl_setopt ($ch,CURLOPT_FAILONERROR,1); curl_setopt ($ch,CURLOPT_COOKIE,$cookie); $result=curl_exec ($ch); // execure query echo $result; -- Best regards, Vladimir mailto:vladkalmik_at_yahoo.comReceived on 2002-04-22