-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Sagar Belure writes:
> On Fri, Jun 25, 2010 at 5:55 AM, Ashish SHUKLA <wahjava...@gmail.com> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA512
>> 
>> Sagar Belure writes:
>>> Hi list,
>> 
>>> Is anyone know if its possible to use NULL character with wget?
>> 
>> Yes you can use NULL character anywhere, but how're you planning on using 
>> NULL
>> character with wget[1] ?
>> 
>> 1. As part of URL - you can URL encode the NULL character as '%00'.
>> 
>> 2. As part of body - you can pass '\0' over stdin.
>> 
>> 3. As command-line argument -- chances are that /proc/$(pidof wget)/cmdline
>>   already has some NULL characters.

> Well, thanks for your reply.
> Thought, it's not working the way I wanted.
> After sniffing the network with wireshark, what I could see it in hex
> values *25 30 30* for '%00'.

Thats URL encoding and its required so you can pass the permissible character
set used for encoding URLs is too small, and its upto the web server to decode
this character sequences, and AFAICS NULL character is not part of that
character set.

> Seems(to me), while trying to download something with wget, it
> converts the URL in browser-like format. If so, in that case, it may
> not be possible to include a NULL character with wget.

Thats the only way, if you try to pass NULL on request otherwise, you're
trying to pass an invalid request (according to RFC), should expect an error
- From server.

HTH
- -- 
Ashish SHUKLA      | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
freebsd.org!ashish | http://people.freebsd.org/~ashish/

They who can give up essential liberty to obtain a little temporary safety,
deserve neither liberty nor safety.
 -- Benjamin Franklin, Memoirs of the life and writings of Benjamin Franklin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iQIcBAEBCgAGBQJMJRmCAAoJEMdGz6nnT6SwhwoP/iY8Javm2sfX/XQWDsuXCXei
fVwXKg2MYNBTZf8oDD/LQgSvQv9Q+9RYW0+/tsEePvPIA3F+zRzSO3VmGKTVjWYk
7NqIwfTpfLMTsk4XMeHbCboHYC+xgQlMHZKukcn1arHmFfSHiV+PdkjkukzPkAug
/8/GM5VTDU6AtP8ISdMs23qUKdcReeJTnMcSXIeCj7eaaB9hgB2LrFtPRTB+49ad
mMn38zM84KGtuk4RtRZzNIVIJ4fw/gPi2DbtVg2Njb7n/quCag0KOyW9GQFgoYyT
gvwYJKjcUoWAjtTiwpGv+xHqAuxexwK9/81xEwgv+EqaSqBqIYvVlyj4u5I8zf76
alW+hPhiBPzItbSsgluDD8J3a65qAu1JgGZtUURu9EWQRoXI83cBec7irWfu6+vK
H/U8A0KujmwES0KlCg9Q3/fSoINwgjDQvc15nRUagLjAhI6Gu72rLPu+NWWPeCgM
6jCrnJR/46OlW7tv956+UW2SnXb01wlz6QqrQg+PVUwG9zBXgEQWvScWmygy+QRW
n8HXVEQvaZuyNGe8mTCLftG1EFydgRvAthcnlQOUtrCrRWNC1r2jbHba1jZIk5Yp
+kFp8drUD9LmpTb9xz4GqbhQZTEl12rD8JVvc6rlsfX+4omsLK1w70itJ2VRGOdV
xUEVpyT+Jigi7triOOqL
=c60n
-----END PGP SIGNATURE-----

_______________________________________________
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to