cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: libcurl problem

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 30 Jan 2003 16:51:14 +0100 (CET)

On Thu, 30 Jan 2003, Kamieniecki, Darcy wrote:

> > I advice you to upgrade libcurl to a more recent version.

> If I can avoid it, I would like to postpone that until my next release of
> my application.

Right, but you could do a separate temporary install somewhere just to see if
it alters the behavior you're seeing. It is always kinda silly to chase for
bugs that already has been fixed in a more recent version.

> > curl -s --cert pemfile.pem https://www.xxx.yyy.zzz/login.asp -d
> user=<user>
> > -d pswd=<password> -d login=Submit https://www.xxx.yyy.zzz/CheckUser.asp
> > https://www.xxx.yyy.zzz/info.csv
>
> So why is your java code not doing it this way? You say it fails to pass on
> cookies, but this command line version doesn't use cookies at all!?

> How do I get my java code to do it that same way as the above
> command line?
> How do I tell it to the session id cookie?

In this command line, it doesn't use the session id cookie. curl ignores
cookies by default. You have to explicitly switch it on.

> > The "session id" being a cookie, can you see that it is stored in the
> > cookie file properly after the whole operation?

> The cookie file is never generated. I looked through the mailing list and
> you mention that curl_easy_cleanup() should be called to create the file.

Correct.

> Which object has this method?

Uh, I guess in the java interface that function isn't called until the object
is killed by the garbage collector or something.

> > Can you see it being sent and received by curl in the first response?

> Yes, I can.

And in the second request, are you saying that the cookie is not passed to
the server correctly anyway?

If so, can you show us how the headers look like that you receive in the
first response?

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Received on 2003-01-30