Oleg,

I do

GetMethod get = new GetMethod("http://www.smsexecutive.it/new/sx.php";);
get.setHttp11(false);
get.setRequestHeader("Referer","http://www.smsexecutive.it/new/index1.php";);
System.out.println("Strict get"+get.isStrictMode()); // output false
get.setStrictMode(true);
System.out.println("Strict get"+get.isStrictMode()); //output true
httpclient.executeMethod(get);

but the cookies are in different lines. I go in debug mode inside HttpClient Source, and I see that there is another strictmode variable, in HttpClient.

so I try httpclient.setStrictMode(true) and now all is working!

I clean my code and the only istruction needed to work properly is this one.
Do you think that GetMethod#setStrictMode(true) is ok?

Thanks for all

Albert

From: [EMAIL PROTECTED]
Reply-To: "Jakarta Commons Users List" <[EMAIL PROTECTED]>
To: "Jakarta Commons Users List" <[EMAIL PROTECTED]>
Subject: RE: [httpclient] session after autentication
Date: Tue, 14 Oct 2003 11:31:26 +0200

Albert,
Apparently you have not activated the strict mode. Give it a shot. Some servers
do expect all cookies to be condensed into one header.


Oleg



_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to