httpwebresponse Questions
5
Solved
When making a request using HttpWebRequest object, I need to call the method GetResponse() to send the request and get the response back.
The problem with this method is that it doesn't return the ...
Leonerd asked 15/5, 2010 at 22:29
5
I'm interested in capturing the Internet Protocol (IP) address of my users at their initial submit to my website. I was under the impression that a SvelteKit submit would be similar to other node.j...
Siouxie asked 28/12, 2021 at 20:34
7
Solved
I have an application written in VB.NET (NOT asp.net, it is a Windows Console app). I am trying to call a url (an html page) and get back the response into a string. The response is straight JSON, ...
Lemuel asked 16/8, 2010 at 21:36
5
Solved
The closest thing I could find was System.Net.Mime.MediaTypeNames but that doesn't seem to have everything (like json) since it seems to be more focused around email attachments.
Upcountry asked 19/6, 2009 at 0:35
2
Solved
XML sent from API
<AuthenticationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<PAPIErrorCode>0</PAPIErrorCode>
<ErrorMessage/>
<AccessToken>StringAcces...
Talley asked 26/5, 2013 at 21:29
2
Solved
I open a website using webbrowser control and then save cookies in cookieContainer , and later use HTTPwebrequest to process forward browsing pages etc.
The issue arises, when i make a search and ...
Rockrose asked 23/5, 2012 at 18:8
6
Solved
I am initiating an HttpWebRequest and then retrieving it's response. Occasionally, I get a 500 (or at least 5##) error, but no description. I have control over both endpoints and would like the rec...
Codling asked 31/8, 2011 at 18:56
7
Solved
Please see the code below:
CookieContainer cookieJar = new CookieContainer();
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("http://www.google.com");
request.CookieContainer = co...
Magnetometer asked 2/12, 2012 at 23:30
12
How do you loop through a WebHeaderCollection got from HttpWebResponse in Windows phone 7 to get keys and values? We've tried Enumerator.Current; with this, we are only getting the keys, not the va...
Salliesallow asked 22/6, 2011 at 11:42
3
Solved
I am calling a third party service and when I ask for a response it throws out an exception that says
"Authentication failed because the remote party has closed the transport stream exception"....
Necessarian asked 25/2, 2016 at 8:12
3
Solved
So I am working on writing an extension class for my project using HttpClient since I am moving over from HttpWebRequest.
When doing the POST request, how do I send a normal string as a parameter?...
Mcclelland asked 22/12, 2017 at 16:13
3
We have a tool which checks if a given URL is a live URL. If a given url is live another part of our software can screen scrap the content from it.
This is my code for checking if a url is live
...
Rubellite asked 13/1, 2011 at 10:35
8
Solved
I requested 100 pages that all 404. I wrote
{
var s = DateTime.Now;
for(int i=0; i < 100;i++)
DL.CheckExist("http://google.com/lol" + i.ToString() + ".jpg");
var e = DateTime.Now;
var d =...
Croydon asked 16/4, 2009 at 0:34
9
I'm trying to implement a limited web crawler in C# (for a few hundred sites only)
using HttpWebResponse.GetResponse() and Streamreader.ReadToEnd() , also tried using StreamReader.Read() and a loop...
Indiscrete asked 23/5, 2009 at 11:3
6
I am writing a program that needs to download an .exe file from a website and then save it to the hard drive. The .exe is stored on my site and it's url is as follows (it's not the real uri just on...
Cutlass asked 7/1, 2013 at 9:22
2
Solved
I am using a WebRequest to read an HTML site. The server seems to be redirecting my request.
My Code is similar to the following:
String URI = "http://www.foo.com/bar/index.html"
WebRequest req...
Citral asked 23/12, 2012 at 15:56
3
Solved
In one of my apps, I am getting the response from a webrequest. The service is Restful service and will return a result similar to the JSON format below:
{
"id" : "1lad07",
"text" : "test",
"ur...
Melcher asked 31/3, 2011 at 0:13
3
Solved
I am getting the following exception:
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
From this question:
HttpWebRequestError: The server com...
Podolsk asked 7/12, 2011 at 23:28
5
I had a low performance problem with HTTP requests on .NET. The HTTP GET request to a REST API on the localhost took about 500 ms to complete. I spent a lot of time to fix it. I have tried many way...
Frankfurter asked 1/4, 2016 at 13:44
1
Solved
I've implemented the most basic Reverse Proxy to pull a page and then add some content to the body. Unfortunately my attempt to add to the html isn't taking effect. The code below just shows the or...
Erv asked 16/7, 2018 at 6:52
3
Solved
HttpWebResponse response = (HttpWebResponse)await request.GetResponseAsync();
HttpStatusCode statusCode = response.StatusCode;
In this code statusCode.ToString() returns for example "BadRequest" ...
Freshwater asked 29/5, 2018 at 15:37
2
Solved
<?xml version="1.0" encoding="utf-8"?>
<rsp stat="ok">
<image_hash>cxmHM</image_hash>
<delete_hash>NNy6VNpiAA</delete_hash>
<original_image>http://imgur...
Embouchure asked 10/8, 2010 at 15:27
4
Solved
Im wondering if theres an easy way to get the response of an async httpwebrequest.
I have already seen this question here but all im trying to do is return the response (which is usually json or x...
Quadrilateral asked 12/5, 2012 at 15:37
3
Solved
I've integrated an option for users to pay via PayPal their online shopping on the web shop that I'm creating. The problem came up suddenly when I started to get this error:
You must write Conten...
Smudge asked 23/1, 2016 at 21:20
8
Solved
I need to perform some action in wordpress admin panel programmatically but can't manage how to login to Wordpress using C# and HttpWebRequest.
Here is what I do:
private void button1_Click(objec...
Tague asked 15/8, 2009 at 19:17
1 Next >
© 2022 - 2024 — McMap. All rights reserved.