cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Problem in between Win32/Linux distribution

From: HART, CHRISTOPHER T <christopher.t.hart_at_bankofamerica.com>
Date: Tue, 25 Jan 2005 10:12:56 -0500

> I have a wired phenomenon.

This happens to me too, usually when I have too much coffee. ;-)

>The totally extreme thing is that, the server doesn't really do a lot
>of checks. I tried to call the href curl is getting with a normal
>browser and I got the correct page! Any time I try it with curl
>(command line or thru the snoopy class I'm using) I get the wrong
>result.

You may want to check to see if the application requires cookies. A lot of J2EE application servers and applications require a "JSESSIONID" cookie to be written to the browser to maintain session state. It's possible that the application just won't work if it can't do this. Other times, that information may be "re-written" in to the URL string. You should be able to see this happen when you use a browser to hit the site "normally". For all of these things, LiveHTTPHeaders (on Firefox) or ieHTTPHeaders (on Internet Explorer) should show you what's going on. (If it turns out the application does require cookies, check out the -b and -c options in cURL.)

Chris Hart
Received on 2005-01-25