httpwebrequest Questions
16
Solved
I am trying find a way to ignore the certificate check when request a Https resource, so far, I found some helpful article in internet.
But I still have some problem. Please review my code. I jus...
Nydianye asked 20/9, 2012 at 5:33
3
Does anyone know how to screen scrape web-sites that use digest http authentication?
I use code like this:
var request = (HttpWebRequest)WebRequest.Create(SiteUrl);
request.Credentials=new Network...
Cyaneous asked 27/2, 2009 at 11:1
4
Solved
I want to create a simple script that checks if a certain hostname:port is running. I only want to get a bool response if that URL is live, but I'm not sure if there's a straightforward way of doin...
Astrosphere asked 14/2, 2017 at 13:4
4
Solved
I'm building a WebClient library. Now I'm implementing a proxy feature, so I am making some research and I saw some code using the CONNECT method to request a URL.
But checking it within my web br...
Perla asked 28/7, 2012 at 3:12
7
Solved
I'm trying to write a Java class to log in to a certain website. The data sent in the POST request to log in is
user%5Blogin%5D=username&user%5Bpassword%5D=123456
I'm curious what the %5B and %...
Ternan asked 1/4, 2012 at 16:25
4
Solved
I'm writing a program that reads content from a user provided URL. My problem is in the code that goes something like this:
Uri uri = new Uri(url);
WebRequest webRequest = WebRequest.Create(uri);
W...
Pylorus asked 18/2, 2009 at 12:11
4
Solved
I have a p12 certificate, that I load it in this way:
X509Certificate2 certificate = new X509Certificate2(certName, password,
X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet...
Albedo asked 16/9, 2016 at 10:15
18
I have created a program, tried to post a string on a site and I get this error:
"The server committed a protocol violation. Section=ResponseStatusLine"
after this line of code:
gResponse =...
Upward asked 20/3, 2010 at 10:50
7
Solved
I am working with a proxy that requires authentication, i.e., in a browser if I try to open a page it will immediately ask for credentials. I supplied same credentials in my program but it fails wi...
Persaud asked 7/3, 2012 at 14:16
7
Solved
I've been Googling and trying all the solutions I could find or think of myself. The site I'm trying to load is running TLS1.2 as is a few other sites I tried to test with to make sure it wasn't a ...
Bedad asked 25/9, 2015 at 18:22
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
Solved
I have the following anonymous type:
new {data1 = "test1", data2 = "sam", data3 = "bob"}
I need a method that will take this in, and output key value pairs in an array or dictionary.
My goal i...
Ardehs asked 14/8, 2010 at 3:47
5
Solved
I am still new on c# and I'm trying to create an application for this page that will tell me when I get a notification (answered, commented, etc..). But for now I'm just trying to make a simple cal...
Drawn asked 24/11, 2014 at 15:27
2
Solved
In spite of the RFC stating that the order of uniquely-named headers shouldn't matter, the website I'm sending this request to does implement a check on the order of headers.
This works:
GET https:...
Waldrup asked 27/8, 2020 at 12:56
6
Solved
Is there a way to read/write the cookies that a WebBrowser control uses?
I am doing something like this...
string resultHtml;
HttpWebRequest request = CreateMyHttpWebRequest(); // fills http he...
Lowrey asked 29/12, 2009 at 16:41
4
I have a simple Restful service being called from a console app so am using WebClient. I am wondering if this call for Delete is correct.
The url looks like localhost/RestService1/Person/1
using (v...
Sirois asked 11/9, 2012 at 19:56
6
I have a big problem: I need to send 200 objects at once and avoid timeouts.
while (true)
{
NameValueCollection data = new NameValueCollection();
data.Add("mode", nat);
using (var client = ne...
Gery asked 1/8, 2009 at 0:44
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
3
Solved
I'm creating a web request in ASP.NET and I need to add a bunch of data to the body. How do I do that?
var request = HttpWebRequest.Create(targetURL);
request.Method = "PUT";
response = (HttpWebRe...
Inflame asked 23/11, 2010 at 12:42
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
2
Solved
How does one change user agent strings in http requests made in R? And how do I figure out what my current user agent string looks like?
Thanks in advance.
Berton asked 27/12, 2010 at 5:50
6
Solved
I am accessing images from another website. I am getting this Error:
"failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request " error when copying 'some(not all)' images. here is my...
Spinner asked 27/12, 2010 at 14:10
10
Solved
I'm trying to connect to an API that uses a self-signed SSL certificate. I'm doing so using .NET's HttpWebRequest and HttpWebResponse objects. And I'm getting an exception that:
The underlying c...
Menander asked 8/2, 2009 at 23:56
7
Solved
Very simple I'm sure, but driving me up the wall! There is a component that I use in my web application that identifies itself during a web request by adding the header "XYZComponent=true" - the pr...
Quinlan asked 20/8, 2010 at 10:31
2
Is there any advantage of using set-cookie2 over set-cookie.
And is there any difference in how they affect the functionality on server and client side.
Groin asked 27/2, 2012 at 8:45
© 2022 - 2024 — McMap. All rights reserved.