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

curl-and-php

Re: JSESSIONID cookie between 2 pages

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 2 Aug 2004 10:34:47 +0200 (CEST)

On Sun, 1 Aug 2004, Travis Staloch wrote:

> I'm trying to get a JSESSIONID cookie and use it to get some arc info from
> the URL's below. Here is my curl info: libcurl/7.10.5 OpenSSL/0.9.7b
> zlib/1.1.4

That's a fairly old libcurl.

> I've been trying alot of different methods including using a cookiefile and
> cookiejar. But I can't seem to get these to work. I keep getting the
> message: Session has expired. I don't know if I'm passing the cookie
> correctly or what else I could do to get this working.

It sounds like a cookie problem indeed.

I suggest you work with the command line tool until you get the basic stuff to
work.

> Also, it would help if I could figure out how to view the header I'm sending
> with curl, not just the one received.

Sorry, that's PHP/CURL stuff I don't know about. With curl I'd suggest using
--trace-ascii and with libcurl CURLOPT_DEBUGFUNCTION.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-08-02