httpwebrequest Questions
5
I want to post some form data to a specified URL that isn't inside my own web application. It has the same domain, such like "domain.client.nl". The web application has a url "web.domain.client.nl"...
Simsar asked 5/2, 2013 at 8:18
6
Solved
I am trying to get the HTTP status code number from the HttpWebResponse object returned from a HttpWebRequest. I was hoping to get the actual numbers (200, 301,302, 404, etc.) rather than the text ...
Outleap asked 25/8, 2009 at 20:39
3
Solved
I am trying to use a WebClient / HttpWebRequest to download some data from a server. I use the following code to do so:
WebClient client = new WebClient();
client.Credentials = new NetworkCredenti...
Lillia asked 26/5, 2013 at 12:43
4
Solved
I saw this piece of code:
var request = (HttpWebRequest) WebRequest.Create("http://www.google.com");
Why do you need to cast (HttpWebRequest)? Why not just use HttpWebRequest.Create? And why doe...
Natty asked 22/5, 2009 at 3:35
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
Solved
how to get host domain from a string URL?
GetDomain has 1 input "URL", 1 Output "Domain"
Example1
INPUT: http://support.domain.com/default.aspx?id=12345
OUTPUT: support.domain.com
Example2
IN...
Staging asked 8/1, 2013 at 9:36
4
Solved
I have a CookieContainer extracted from a HttpWebRequest/HttpWebResponse session named CookieJar. I want my application to store cookies between runs, so cookies collected in the CookieContainer on...
Coupler asked 21/11, 2009 at 23:52
6
Solved
Is it possible to pass parameters with an HTTP get request? If so, how should I then do it? I have found an HTTP post requst (link). In that example the string postData is sent to a webserver. I wo...
Eddie asked 5/2, 2009 at 7:16
5
Solved
Having an issue, where calling WebRequest.GetResponse() hangs and times out on the first call, but after the first call, everything works fine.
try {
WebRequest myHttpWebRequest = WebRequest.Cre...
Reseta asked 7/7, 2011 at 12:4
6
Solved
I am writing some failover code so that if my desktop app cannot connect to its website, it can instead try a backup website.
However, I cannot seem to figure out how to simulate a test if a websi...
Pennyworth asked 31/3, 2011 at 20:11
7
Solved
I need to upgrade a .NET application to support a call to an API on a website that only supports TLS 1.2. From what I read, if the application is targeting 4.6 or higher then it will use TLS 1.2 by...
Oliy asked 25/6, 2017 at 22:27
7
Solved
I have a web request that is working properly, but it is just returning the status OK, but I need the object I am asking for it to return. I am not sure how to get the json value I am requesting. I...
Irwin asked 7/6, 2012 at 8:45
3
Solved
HttpWebRequest automatically appends an Expect: 100-continue header for POST requests. Various sources around the internet suggest that this can be disabled as follows:
System.Net.ServicePointMana...
Martelli asked 28/12, 2012 at 1:6
4
Solved
I am trying to upload an XML file to the HTTP server. My XML file contains a tag for the username, password and domain, and I am able to connect to it when I try to connect manually, but using the ...
Velamen asked 10/1, 2013 at 16:4
15
Solved
Here's the code I'm using:
// create a request
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create(url); request.KeepAlive = false;
request.ProtocolVersion = HttpVersion.Version10;
request...
Margoriemargot asked 4/2, 2012 at 23:46
4
Solved
According to my research whilst trying to solve this problem, it turns out that the .Net WebProxy class does not support Socks proxies - a tad annoying. I also can't seem to find any code or inform...
Witenagemot asked 4/10, 2010 at 13:37
13
Is there a way to send data using the POST method without a form and without refreshing the page using only pure JavaScript (not jQuery $.post())? Maybe httprequest or something else (just can't fi...
Haigh asked 18/6, 2011 at 12:46
4
Solved
I need to add some custom headers to the HttpWebRequest object. How can I add Custom Header to HttpWebRequest object in Windows Phone 7.
Libidinous asked 15/12, 2011 at 12:0
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
I realise there have been a number of similar posts to this but I haven't found a solution yet. Am trying to post some xml to an MPI gateway but keep getting the following error:
Unable to read ...
Popularity asked 11/2, 2015 at 11:36
10
Solved
I've got a method that uses a WebRequest to upload a file to a sharepoint 2010 list/folder, using a PUT request, with the Overwrite Header set to T (overwrite).
When several files are uploaded (me...
Mamoun asked 22/7, 2011 at 2:20
2
Solved
I need to change the order of headers, I'm using this:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL);
request.Method = context.Request.HttpMethod;
request.UserAgent = context.Req...
Colemancolemanite asked 6/2, 2009 at 20:8
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
3
Solved
Is there a way how can I can get request origin value in the api controller when I'm calling some api endpoint with ajax call?
For example I'm making this call from www.xyz.com:
$http({
url: '...
Sartorius asked 28/12, 2016 at 16:5
© 2022 - 2024 — McMap. All rights reserved.