473,320 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Http Request and characters...

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
Nov 16 '05 #1
1 1394
objectref wrote:
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.s...945551561;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,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: William L. Bahn | last post by:
I'm looking for a few kinds of feedback here. First, there is a program at the end of this post that has a function kgets() that I would like any feedback on - including style. Second, for...
6
by: Microsoft News | last post by:
Hi, I have been using several http server code examples from the web, include one from msdn, and I can't seem to get a simple http server thread working. I can connect the server successful...
10
by: Dave | last post by:
Hi, I'm trying to post XMl to a URl but when I test it the text in the request stream doesn't appear to get sent: // Configure secure certificate & credentials...
2
by: Navanith | last post by:
Hi, I wrote a simple aspx page that dumps query string to the browser. Following is the globalization section in web.config <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
4
by: Lu | last post by:
Hi, i am currently working on ASP.Net v1.0 and is encountering the following problem. In javascript, I'm passing in: "somepage.aspx?QSParameter=<RowID>Chèques</RowID>" as part of the query...
3
by: webEater | last post by:
Hey, I am writing a file that reads in an external file in the web and prints it out including the response header of the http protocol. I do this to enable cross domain XMLHttpRequests. I...
2
by: phl | last post by:
Hello, I have aspx(say page.aspx) page which uses javascript to submit a form reload with some unicode characters,upon an button event e.g page.aspx?param=value I get this value in the...
2
by: =?Utf-8?B?UGF1bA==?= | last post by:
I am using ASP.Net 2.0 and VB.Net (although C#is ok also). I want to create an object/method/function that will take a URL as an input parameter and then return all of the HTML in that page. I...
2
by: ross-mcm | last post by:
I have an app that gets a file from a web server. An ASP page is passed authenitication data (username, password) and a filename. The file is read and then output by the ASP page so the only...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.