Hi Dennis.

thanks very much for your response.

I use 2 request for the same httpClient. a GetMethod and then a
MultipartPostMethod.
GetMethod connet to the serveur and do an authenitcation. The seveur
application open a session and pull some information in it (like current
user)
Then, I execute the MultipartPostMethod. The pointed URL must get info in
session like the current user. But it don't retrieve it. Because this second
request does not found the session created by sending the first method
(GetMethod)

So I can not use the recycle method

Do you have any idea about how to resolve this problem?

Best regards

Vincent




----- Original Message -----
From: "Norrod, Dennis G Mr Veridian-MRJ" <[EMAIL PROTECTED]>
To: "'vincent chappuis '" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, July 18, 2003 6:37 PM
Subject: RE: [httpclient][session][how to create a session]


> Hi Vincent,
>
> If you want to know how to use the same connection for multiple
> requests, use the recycle method that should be available for the
> request method you're using. Just keep in mind that all attributes for
> the connection are cleared - except the host and authentication, if I
> remember correctly. So, if your next request is for the same path as the
> previous request, then you'll have to save it (getPath()), recycle the
> request, and then reset it (setPath()).
>
> Later.
> Dennis
>
> -----Original Message-----
> From: vincent chappuis
> To: [EMAIL PROTECTED]
> Sent: 7/18/03 11:39 AM
> Subject: [httpclient][session][how to create a session]
>
> Hi all, I'm a beginer in HttpClient.
>
> My problem is the next one :
>
> How to keep a session using HttpClient API ?
>
> Best regards
>
>
>


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

Reply via email to