Http Request and characters...

  • Thread starter Thread starter objectref
  • Start date Start date
O

objectref

Hi to all folks here,

i have made a simple http server application that takes requests from
browsers
and do some processing on these.

The problem is that if i pass Greek characters on it, for example, ÁÂÃÄ,
i get back %CE%91%CE%92%CE%93%CE%94.

and when i pass symbols, i get nothing back.

For example. in the below request, the symbols after "generic;" never come
to my http server.

http://192.168.123.45:8501/project.serv;123456;4540;10;6945551561;generic;#$%^&*()_+


I can create a table-map for the Greek characters (so that, e.x., when i
get %CE%91 i know that is an "A")
but i am sure that there is another way to do so, unfortunately, not one
that i know of!

Can anyone help with that ?

Thanks a lot for any help,

objectref
 
objectref said:
Hi to all folks here,

i have made a simple http server application that takes requests from
browsers
and do some processing on these.

The problem is that if i pass Greek characters on it, for example,
ÁÂÃÄ, i get back %CE%91%CE%92%CE%93%CE%94.

and when i pass symbols, i get nothing back.

For example. in the below request, the symbols after "generic;" never
come to my http server.

http://192.168.123.45:8501/project.serv;123456;4540;10;6945551561;gene
ric;#$%^&*()_+


I can create a table-map for the Greek characters (so that, e.x.,
when i get %CE%91 i know that is an "A")
but i am sure that there is another way to do so, unfortunately, not
one that i know of!

Can anyone help with that ?

You cannot send arbitrary characters as part of a URL (see
http://www.faqs.org/rfcs/rfc1738.html).

You must use URL encoding in your case. Try System.UriBuilder or
System.Web.HttpUtility.UrlEncode().

Cheers,
 
Back
Top