Eduardo Aldaz-Carroll <eduardo / aldaz-carroll.com> writes:

> In windows the post is correct, but in linux the values of username
> and password have a space in the middle !?

Actually, that's not what you're seeing.  The attached hex dumps DO
NOT show a space in the middle of the data:

> 0040  c4 04 75 73 3d 6d 64 73  32 26 70 77 3d 6d 64 73   ..us=mds 2&pw=mds
> 0050  32                                                 2

There's not a space in the middle of the data; ethereal just prints a
space between the first eight bytes and the last eight bytes so that
you can line it up more easily with the hex dump on the left - see the
double space in the middle of the hex dump?

A real space would be identified by a "20" in the hex dump.

However, I'm really surprised that you're seeing something different
at all on windows vs. linux.  Can you post the same portions of the
network trace from the windows machine?  When I try your test http
client program here, I get the same behavior as what you posted in the
network trace from both windows and linux. (both running ruby 1.8.4)