Re: [racket] escaping binary data in url

2011-08-14 Thread Veer
I figured it out, it is not that complex as I thought initially , also I thought url constructor was escaping the data. Thanks all for the help. On Sat, Aug 13, 2011 at 9:37 AM, Veer wrote: > Since server part expects escaped data based on rfc 1738 , I "assume" > that it will not be able to inte

Re: [racket] escaping binary data in url

2011-08-12 Thread Veer
This url http://localhost:8000/servlets/standalone.rkt?test=%ff causes server to close connection whereas http://localhost:8000/servlets/standalone.rkt?test=%23 does not , and works as expected. I suppose this is caused by use of net/url library, right? On Fri, Aug 12, 2011 at 11:43 PM, Jay McCar

Re: [racket] escaping binary data in url

2011-08-12 Thread Veer
Since server part expects escaped data based on rfc 1738 , I "assume" that it will not be able to interpret the data as base64 encoding. As per bittorrent spec , the get request to tracker must have info_hash(20 byte sha) escaped along with others. Is there any other way to insert query part in url

Re: [racket] escaping binary data in url

2011-08-12 Thread Jay McCarthy
That's what the Web Server stuffers do http://docs.racket-lang.org/web-server/stateless.html#(part._stuffers) On Fri, Aug 12, 2011 at 11:38 AM, Danny Yoo wrote: > The library already does some URL encoding for you, as "%" is an > illegal character in a query string, since that's the escape chara

Re: [racket] escaping binary data in url

2011-08-12 Thread Danny Yoo
The library already does some URL encoding for you, as "%" is an illegal character in a query string, since that's the escape character itself for arbitrary bytes, "%25" gets translated down to... ;;; > (integer->char (string->number "25" 16