HttpClient not sending cookie?

2008-06-09 Thread Eduardo J. Ortega U.
Hi, all: I am trying to use HttpClient to authenticate to a website, and do a couple of GET and POST requests. I can submit the authentication form, get the cookie, and after getting the cookie, I can make a GET request and I see that it sends the approrpiate Cookie header. Then I attempt to do

Re: HttpClient not sending cookie?

2008-06-09 Thread Eduardo J. Ortega U.
I forgot to attach the logfile. Here it is. -- Eduardo J. Ortega U. {\rtf1\ansi\ansicpg1252\deff0\deflang3082{\fonttbl{\f0\fnil Courier New;}{\f1\fswiss\fcharset0 Arial;}} {\colortbl ;\red255\green0\blue0;\red0\green0\blue128;} {\*\generator Msftedit

How to encode GET parameter to iso-8859-1?

2008-06-09 Thread Bas Schulte
Hi, I need to encode my parameters in a GET request to a given host in iso-8859-1. How would I go about that with httpclient (3.1)? There's EncodingUtil.getBytes that gives me a byte[]: String messageData = blah; byte[] bytes = EncodingUtil.getBytes(messageData, iso-8859-1); How do I feed

HTTPClient Logon form

2008-06-09 Thread Benouille
Hi all, I'm new to HTTPClient. I'm trying to logon to a form developped under WEBSPHERE Studio. This form needs a username/password and need to accept cookies. So i try the sample FormLoginDemo in the HTTPClient samples. Unfortunately, when i run it, it does not work ? Console display : Login

Re: HttpClient not sending cookie?

2008-06-09 Thread Oleg Kalnichevski
On Mon, 2008-06-09 at 11:25 -0500, Eduardo J. Ortega U. wrote: Hi, all: I am trying to use HttpClient to authenticate to a website, and do a couple of GET and POST requests. I can submit the authentication form, get the cookie, and after getting the cookie, I can make a GET request and I

Re: How to encode GET parameter to iso-8859-1?

2008-06-09 Thread Oleg Kalnichevski
On Mon, 2008-06-09 at 18:51 +0200, Bas Schulte wrote: Hi, I need to encode my parameters in a GET request to a given host in iso-8859-1. How would I go about that with httpclient (3.1)? There's EncodingUtil.getBytes that gives me a byte[]: String messageData = blah; byte[] bytes =

Re: HTTPClient Logon form

2008-06-09 Thread Oleg Kalnichevski
On Mon, 2008-06-09 at 13:47 -0700, Benouille wrote: Hi all, I'm new to HTTPClient. I'm trying to logon to a form developped under WEBSPHERE Studio. This form needs a username/password and need to accept cookies. So i try the sample FormLoginDemo in the HTTPClient samples. Unfortunately,

Re: HttpClient not sending cookie?

2008-06-09 Thread Eduardo J. Ortega U.
Hi, Oleg: Try using the browser compatibility mode. I am not sure I understand what you mean. Could you please point me to some docs about this? Thanks, -- Eduardo J. Ortega U. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: HttpClient not sending cookie?

2008-06-09 Thread sebb
On 10/06/2008, Eduardo J. Ortega U. [EMAIL PROTECTED] wrote: Hi, Oleg: Try using the browser compatibility mode. I am not sure I understand what you mean. Could you please point me to some docs about this? Oleg was referring to the Cookie mode: