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 / Web Services / June 2005

Tip: Looking for answers? Try searching our database.

HttpWebResponse

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jonathan - 14 Jun 2005 21:04 GMT
When using HttpResponse, I'm getting HTML entities in the returned value:

For example:
//      the httpRequest has already been sent
HttpWebResponse httpResponse = null;
httpResponse = (HttpWebResponse)httpRequest.GetResponse();
StreamReader sr = new StreamReader(httpResponse.GetResponseStream());
   
Console.WriteLine(sr.ReadToEnd().ToString());

The results (partial) are:

<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>

The "<" and ">" are replaced with HTML markup. I'm sure there's a logical
explanation that I'm overlooking, so has anyone have an explanation?
Feroze [msft] - 24 Jun 2005 21:16 GMT
HttpWebResponse does not do any content manipulation or escaping. If you are
seeing escape characters, they were probably being sent by the server
itself.

Signature

feroze

-----------------
This posting is provided as-is. It offers no warranties and assigns no
rights.

See http://weblogs.asp.net/feroze_daud for System.Net related posts.
----------------

> When using HttpResponse, I'm getting HTML entities in the returned value:
>
[quoted text clipped - 12 lines]
> The "<" and ">" are replaced with HTML markup. I'm sure there's a logical
> explanation that I'm overlooking, so has anyone have an explanation?

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.