Topaz Filer - Email filing software
System.Net.HttpWebResponse Class
Information   Base Types   Related Resources

Provides an HTTP-specific implementation of the WebResponse class.

  • Namespace: System.Net
  • Assembly: System.dll

  • System.Net.WebResponse
    System.Runtime.Serialization.ISerializable
    System.IDisposable
  • View this type on MSDN
  • Search for this type on MSDN using MSDN's own search engine
  • Google for this type - all Web
  • Google for this type - MSDN only
    Articles (37)Discussions (640)MembersRotor
    Discussions

    Page: 1234567891011121314151617181920
    212223242526
    'download a file through proxy' code problem (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hi, I am trying to download a file from the Internet. The below code works fine with no proxy server but I am behind a proxy server at work and need to figure out how to include it in the code. code Dim wc As New System.Net.WebClient wc.DownloadFile("http://www.google.ie/images/hp0.gif", "C:\inetpub\wwwroot\bin\google.gif") /code I have been looking all over google and am trying the following code...
    'Proxy Authentication Required' exception (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    Hi All, I'm facing proxy authentication problem on pocket pc 2003. Following code work fine on desktop, but it throws "proxy Authentication Required" exception on "Pocket PC 2003". I read one thread on google http://groups.google.com/groups?hl en&lr &ie UTF 8&threadm %23Iwod2iTEHA.387 2%40TK2MSFTNGP10.phx.gbl&rnum 7&prev /groups%3Fhl%3Den%26lr%3D%26ie%3DUTF 8% 26q%3DProxy%2BAuthentication%2BRequir...
    (WebResponse.GetResponseStream()).ReadToEnd() Exception (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    Hi, i was interested in sending SMSs from my PDA via an SMS Gateway when the PDA is connected to the Internet (Cradle/Bluetooth). I have wrote the following Class which works fine on the .Net Framework, but rases an Exception on the Compact Framework. It's not just this method, but all methods which read from this Stream. The exception is that the chunk length was not valid. Here is the code: usin...
    .Net CF Web Service (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    Is it possible to use .Net Compact Framework to consume web services that implemented cookieless session? I've surfed the web to find out the solution for a few weeks. I can only get some examples that consume sessionless web service. Can anyone give me some sample code or references? Thank you very much!
    .net framework equivalent to MSXML2.XMLHTTP40() (VIP replies)
    microsoft.public.dotnet.framework.sdk
    Hello all, Novice to ASP.NET and am trying to access web service via xml. I declared a request and DOC object one one using MSXML the other .net framework: Dim objRequest As New MSXML2.XMLHTTP40() Dim objXMLDoc As New XmlDocument() What is the .net equivalent to the MSXML2.XMLHTTP40()? Thanks, Dave
    .NET Rant (VIP replies)
    microsoft.public.dotnet.languages.csharp
    I've been learning .NET for a couple of weeks now. I've found that on the surface, .NET looks powerful and very handy. However, when getting down and dirty with it, I've found that sometimes it's no longer the beast it first appeared. It then shows itself to be irrationally impotent in certain aspects. Here are a couple of examples: Example 1 An HttpWebRequest instance cannot be given a "raw" HTTP...
    401 Unauthorized when using DefaultCredentials (VIP replies)
    microsoft.public.dotnet.framework.aspnet.security
    Hi all: I hope this is the right newsgroup. I'm having a hard time making a web request from an authenticated process. Here's the scenario: Managed WinForms component hosted in IE, the virtual Directory has Anonymous access disabled and only has Integrated Windows Authentication enabled. When I hit the URL I get challenged for credentials, once I input them I can see the page with my control. The ...
    500 error when trying to do a post (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webservices
    I'm trying to do a POST using the following code, but I'm getting a 500 error. Can somebody please help me? I'm been stuck for quite a while. private void bnInvoke Click(object sender, System.EventArgs e) { string lcUrl "http://www.xmlwebservices.cc/ws/v1/calc/SimpleCalc.asmx/Add"; HttpWebRequest loHttp (HttpWebRequest) WebRequest.Create(lcUrl); // *** Send any POST data string lcPostData "a " Htt...
    500 error when trying to do a post (VIP replies)
    microsoft.public.dotnet.framework
    I'm trying to do a POST using the following code, but I'm getting a 500 error. Can somebody please help me? I'm been stuck for quite a while. private void bnInvoke Click(object sender, System.EventArgs e) { string lcUrl "http://www.xmlwebservices.cc/ws/v1/calc/SimpleCalc.asmx/Add"; HttpWebRequest loHttp (HttpWebRequest) WebRequest.Create(lcUrl); // *** Send any POST data string lcPostData "a " Htt...
    500 error when trying to do a post (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I'm trying to do a POST using the following code, but I'm getting a 500 error. Can somebody please help me? I'm been stuck for quite a while. private void bnInvoke Click(object sender, System.EventArgs e) { string lcUrl "http://www.xmlwebservices.cc/ws/v1/calc/SimpleCalc.asmx/Add"; HttpWebRequest loHttp (HttpWebRequest) WebRequest.Create(lcUrl); // *** Send any POST data string lcPostData "a " Htt...
    access web server using raw HTTP (VIP replies)
    microsoft.public.dotnet.framework
    Hello Everybody, How can we request a web server and get the response without using HttpWebRequest and HttpWebResponse object. I mean, how can we access it at a raw level. Regards Satinder
    access web server using raw HTTP... (VIP replies)
    microsoft.public.dotnet.faqs
    Hello Everybody, How can we request a web server and get the response without using HttpWebRequest and HttpWebResponse object. I mean, how can we access it at a raw level. Regards Satinder
    access web server using raw HTTP... (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Hello Everybody, How can we request a web server and get the response without using HttpWebRequest and HttpWebResponse object. I mean, how can we access it at a raw level. Regards Satinder
    Accessing cookies returned in error responses with httpwebrequest (.net CF) (VIP replies)
    microsoft.public.dotnet.framework
    Hi, I'm currently developing an application on the ppc using the .NET compact framework, using HttpWebRequest and HttpWebResponse in asynchronous mode. I'm currently trying to authenticate (basic authentication) with a site protected by third party security software, and the initial request to the site returns a 401 (Access Denied). I can implement authentication using the NetworkCredential class,...
    Accessing cookies returned in error responses with httpwebrequest (.net CF) (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    Hi, I'm currently developing an application on the ppc using the .NET compact framework, using HttpWebRequest and HttpWebResponse in asynchronous mode. I'm currently trying to authenticate (basic authentication) with a site protected by third party security software, and the initial request to the site returns a 401 (Access Denied). I can implement authentication using the NetworkCredential class,...
    Accessing protected http (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Here is the scenario. I have an http site that pops up a request for a username and password before you can enter any part of it. The reason for gaining access is so that I can read an XML file (achieved w/out user/pass) and download a file (achieved w/out user/pass). Both of these are on seperate places on the http site. The question is, how can I make my C# program automatically enter the userna...
    Add form objects in code? (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webcontrols
    How do you add a textbox in code and add them to a particular form? I am using WebRequest.Create (vb.net) to send a form request to authorize.net for credit card processing. They require that one of the fields is the account password. I have to send that as part of my form but I don't want to have it visible to the user so a hidden form field won't work. Is there a way to create the control in cod...
    Allocate more memory into Byte array (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hello, I have a stream I'm reading from, which is from an HttpWebRequest and the Length property is not available because the stream doesn't support seek operations. I'm looping through the stream byte by byte but that's taking a long time on really big files. It would be nice to do something like I do in my C applications where I read the data in chunks and then reallocation more memory to my des...
    analyzing website: how to (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hi all, I want to create an application that downloads a user defined webpage and does makes some content analyzes. Basically download (only the text) and write it to a buffer. Someone knows what classes I can use for this? Regards Stijn
    Anyone using PayPal IPN with .NET? (VIP replies)
    microsoft.public.dotnet.languages.vb
    I have code (below) that was working a year ago that I'm trying to use again and it's now not working. The response is always invalid. Anyone know why? Code: Function GetPayPal() As Boolean Dim myRequest As HttpWebRequest CType(HttpWebRequest.Create("https://www.paypal.com/cgi bin/webscr"), HttpWebRequest) Dim strToSend As String myRequest.AllowAutoRedirect False myRequest.Method "POST" myRequest....
    ASP.NET / certificat (VIP replies)
    microsoft.public.dotnet.framework.aspnet.security
    Hi all I'm trying to access to a virtual directory (web server is a IIS 6.0 on Windows 2003 server) which requires client certificate with HttpWebRequest class. Simplified function code looks like this: HttpWebRequest httpWebRequest (HttpWebRequest)WebRequest.Create(url); httpWebRequest.ClientCertificates.Add(X509Certificate.CreateFromCertFile(@"c:\dada.cer")); httpWebRequest.Method "POST"; httpWe...
    Automating Internet Explorer to fill out forms (VIP replies)
    microsoft.public.dotnet.languages.csharp
    I am interested in finding out if it is possible with C# to manipulate IE to go to certain websites and act as a user. I basically have a process I wish to automate but this process requires the users to input information which we already have, which I feel is inefficient, how can I code Internet explorer to analyse the HTML, enter the correct information and then post it back to the website serve...
    c#A (VIP replies)
    microsoft.public.dotnet.languages.vb.upgrade
    Access Hotmail Using C# By Wouter van Vugt Introduction Hotmail is probably the most popular e mailing facility found on the web today. Millions of people around the world use it for everyday communication with friends and relatives. The main reason for it's popularity is the fact that you can use the service absolutely free of charge. Users are able to read their emails daily using a web interfac...
    Call page from function (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webservices
    Hi, I'm trying to use the web timer to schedule a call to an asp page. In practice, I want the server calls an asp page that makes several jobs. The timer works fine, but I don't know how to call a page from a function. This is part of the code I'm using: ***************************** public void OnTimedEvent(object source, ElapsedEventArgs e) { //operazioni varie da eseguire //HERE THE CALL TO TH...
    calling a webservice from an aspx page (VIP replies)
    microsoft.public.dotnet.framework.webservices.enhancements
    Hi, I created a simple webservice. Now I would like to call it from an aspx page. I tried the following code, but I keep getting a remote server error. When I try to access the webservice directly (http://localhost/webserviceTest/Service1.asmx/Hello), I also get an error: Request format is unrecognized. What am I missing here ? string url "http://localhost/webserviceTest/Service1.asmx/Hello"; Http...
    Ad
    BootFX
    Reliable and powerful .NET application framework.
    Looking to invest in a major software project? Technical and commercial advice available here.
    Other Helpful Sites
    MBR 247
    Topaz Filer
    SharePoint Email Filing
    Software Advisory Services
     
    Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
    Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734