Ask a Question related to ASP.NET Web Services, Design and Development.
-
Jonathan via DotNetMonster.com #1
HttpWebResponse
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?
--
Message posted via DotNetMonster.com
[url]http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-webservices/200506/1[/url]
Jonathan via DotNetMonster.com Guest
-
HttpWebResponse GetResponse
I have an error below. is there any idea about it. Dim Req As HttpWebRequest =... -
HttpWebResponse intercept raw HTTP?
For diagnostic and learning purposes, I would like to intercept and log the raw HTTP headers and content from a HttpWebResponse in a webservice. ... -
HttpWebRequest and HttpWebResponse
Hi all: My old application used to POST xml to a remote server using HttpWebRequest from within an aspx page. The process worked like a charm... -
Problem using HttpWebRequest/HttpWebResponse with HTTPS
Did you ever solve this problem? If so, please can you let me know how as I am trying to do something similar. richard.beacroft@warnerbros.com ... -
Session Cookie and HttpWebResponse
Hi, I'm trying the following: - Imitate a Logon using a Post with HttpWebRequest on remote Webserver (asp 3.0 page using https) - On success... -
Feroze [msft] #2
Re: HttpWebResponse
HttpWebResponse does not do any content manipulation or escaping. If you are
seeing escape characters, they were probably being sent by the server
itself.
--
feroze
-----------------
This posting is provided as-is. It offers no warranties and assigns no
rights.
See [url]http://weblogs.asp.net/feroze_daud[/url] for System.Net related posts.
----------------
"Jonathan via DotNetMonster.com" <forum@nospam.DotNetMonster.com> wrote in
message news:4FD967C21C2F0@DotNetMonster.com...> 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?
>
>
> --
> Message posted via DotNetMonster.com
> [url]http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-webservices/200506/1[/url]
Feroze [msft] Guest



Reply With Quote

