Will Kuhn <[EMAIL PROTECTED]> writes:

> I try to do something like
> wget "http://website.com/ ...
> login=username&domain=hotmail%2ecom&_lang=EN"
>
> But when wget sends the URL out, the "hotmail%2ecom"
> becomes "hotmail.com" !!! Is this the supposed
> behaviour ?

Yes.

> I saw this on the sniffer. I suppose the
> translation of "%2" to "." is done by wget.

Actually, "%2e" is translated to ".".  Since 2e is the ASCII hex code
corresponding to the "." character, the two are entirely equivalent.

Are you sure that the download doesn't fail for some other unrelated
reason?

> How can I force wget to send out URL as it is without making any
> translation ??!

Some translation must be done, for example spaces must be converted to
%20, and so on.  During that course Wget translates regular characters
represented by hex codes into regular characters.  If you don't like
it, you can hack url.c:decide_copy_method to always return
CM_PASSTHROUGH upon encountering a %XX sequence.

Reply via email to