Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

HttpWebRequest

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob - 21 Apr 2008 10:56 GMT
Hello to all,
I'm trying to send an http command. The supplier of the service I have to
use said me that I have not to send the URI string encoded, it means,
special characters have not to be sent encoded, for example, " has NOT TO be
send as %22, space has NOT TO be send as %20, Û has NOT TO BE send as
%C3%9B.
How can I do that?. For the request I use the following:

                       Dim req As Net.HttpWebRequest =
CType(Net.WebRequest.Create(requestUriString), Net.HttpWebRequest)

                       Dim response As Net.HttpWebResponse =
CType(req.GetResponse(), Net.HttpWebResponse)

and I can see that req.Address.AbsoluteUri is always encoded.

Thanks for help!
bruce barker - 21 Apr 2008 16:35 GMT
instead of passing a string to the webrequest, pass a Uri: new
Uri(url,"",true), to create the uri with escape turned off.

-- bruce (sqlwork.com)

> Hello to all,
> I'm trying to send an http command. The supplier of the service I have to
[quoted text clipped - 13 lines]
>
> Thanks for help!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.