| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
RE: [Cookie] Handle a servlet session.
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 18 Oct 2002 09:11:16 +0200 (MET DST)
On Thu, 17 Oct 2002, Fluteau Jerome ICM N PG U PLM A 2 wrote:
> FYI: I try to simulate the navigation within a site in order to post data
Me done that hundreds of times.
> First problem: send the username and password to get the login page.
> => First of all, when I test CURLOPT_COOKIEFILE, nothing seems to be written
CURLOPT_COOKIEFILE is for *reading* cookies, so I should hope the file isn't
> Is there something wrong in this code (my username and password are within
Yes, passing file 0 looks very odd. I would say a file name needs to be a
> curl_setopt($ch, CURLOPT_COOKIEJAR, "C:\tmp\cookie.txt");
You tried reading the docs?
> Indeed I tried to make a simple request on another site (my mailbox) with
Well, that's good for you, but trying FOLLOWLOCATION on a site that doesn't
> The problem is that the servlet from my work site doesn't give directly the
I don't think I follow you here.
> .../servlet/oapdev?page=oap_fset_after_login.jsp
Yes it is.
> => Another little question:
> Is it possible to make several request in only one curl_exec()?
No. The request is made by curl_exec(), not previously. The curl_setopt()
> I'm mean doing each request with the previous cookie, to simulate a
I get your idea, and to repeat what I use to say here, with libcurl itself
You need to improve the PHP/CURL code first, or stay with the more simple
> Besides is the code executed in the same order as the written code? In
setopt() sets options. The order is only important if two setopts set the
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2002-10-18 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info