WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Base64

Re: Base64

by bashiro :: Rate this Message:

| View in Thread

Thanks Tommmmmm!
I get it!
Thanks for your help...

Bashiro
Drammen-Norway

-----Original Message-----
From: "tommmmmm" [tommmmmm@...]
Date: 04/06/2012 07:37
To: "HttpClient User Discussion" <httpclient-users@...>
Subject: Re: Base64

Base64 is done when you do basic authorization. So, when you set your
credentials and give basic authorization top priority you will see a header
like this being sent:
Authorization: Basic shfo34209ujasdja09dj23d9jdpsj#$Dasd
You can see all the headers by specifing logs to be debug level (see
google-> httpClient logs settings)

The encoding is done automatically by the HttpClient

Is it possible to get the encoded string before sending, if that's what you
want - I don't know. Try getting all the headers/params of the request and
iterate through them to look for "Authorization" header.



On 6 April 2012 06:54, Bashiro <bashiro@...> wrote:

> Hello,
> Could anyone point to me any example of "how to"  code Base 64 encoding
> using the HttpClient or HttpCore components
> or using the commons codecs? I cannot find any example
>
> Bashiro
> Drammen-Norway
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@...
> For additional commands, e-mail: httpclient-users-help@...
>
>


--
Tomasz P.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@...
For additional commands, e-mail: httpclient-users-help@...

 « Return to Thread: Base64