-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am trying to POST an attachment to CouchDB using the HttpWebRequest. However, when I attempt "response = (HttpWebResponse)httpWebRequest.GetResponse();" I receive a WebException with the message "The underlying connection was closed: A connection that was expected to be kept alive was closed by…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm working on a site that relies on quite a bit of javascript. The problem is, I'm not a javascript guru in the least. Yes, bit off more than I can chew, here.
I'm using jquery for a spy effect, and use GetResponse for email signups.
If I implement my GetResponse script, it breaks the area later…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am in a situation where when I get an HTTP 400 code from the server, it is a completely legal way of the server telling me what was wrong with my request (using a message in the HTTP response content)
However, the .NET HttpWebRequest raises an exception when the status code is 400.
How do I handle…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Surely, surely, surely there is a way to configure the .Net HttpWebRequest object so that it does not raise an exception when HttpWebRequest.GetResponse() is called and any 300 or 400 status codes are returned?
Jon Skeet does not think so, so I almost dare not even ask, but I find it hard to believe…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
For starters, here's my code:
// Create a request using a URL that can receive a post.
WebRequest request = WebRequest.Create("http://mydomain.com/cms/csharptest.php");
request.Credentials = new NetworkCredential("myUser", "myPass");
// Set the Method property of the request to POST.
request…
>>> More