Skip to main content
Filter by
Sorted by
Tagged with
1500 votes
17 answers
2.6m views

How can I make an HTTP POST request and send data in the body?
Hooch's user avatar
  • 29.8k
411 votes
12 answers
597k views

I have searched everywhere but I couldn't find my answer, is there a way to make a simple HTTP request? I want to request a PHP page / script on one of my websites but I don't want to show the webpage....
Mats Hofman's user avatar
  • 7,290
743 votes
53 answers
1.7m views

We are unable to connect to an HTTPS server using WebRequest because of this error message: The request was aborted: Could not create SSL/TLS secure channel. We know that the server doesn't have a ...
Simon Dugré's user avatar
  • 19.1k
352 votes
16 answers
958k views

Here's the code I'm using: // create a request HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url); request.KeepAlive = false; request.ProtocolVersion = HttpVersion.Version10; request....
Arsen Zahray's user avatar
  • 25.5k
169 votes
16 answers
442k views

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 just ...
Joe.wang's user avatar
  • 11.9k
67 votes
4 answers
72k views

I'm stress testing a web app and have set up a windows test program that spins up a number of threads and sends out a web request on each one. Problem is I get the following output: 01/09/09 11:34:...
Duncan's user avatar
  • 10.3k
124 votes
4 answers
214k views

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); ...
Alfred B. Thordarson's user avatar
324 votes
13 answers
813k views

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 find ...
John's user avatar
  • 7,940
58 votes
5 answers
149k views

I believe after lengthy research and searching, I have discovered that what I want to do is probably better served by setting up an asynchronous connection and terminating it after the desired timeout....
JYelton's user avatar
  • 36.6k
28 votes
4 answers
12k views

when i do a GET with WebRequest.Create("http://abc/test.") i get 404 because according to fiddler the trailing dot gets stripped away by .NET and the web server needs the dot. how can i prevent that ...
user avatar
28 votes
2 answers
44k views

I am creating an application for data retrieval from the web page. The page is password protected and when the user logs in the cookie is created. In order to retrieve the data the application first ...
Niko Gamulin's user avatar
  • 66.6k
181 votes
5 answers
606k views

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 call ...
Oscar Reyes's user avatar
  • 4,402
86 votes
14 answers
99k views

Is a POST secure enough to send login credentials over? Or is an SSL connection a must?
Matt's user avatar
  • 5,489
99 votes
3 answers
103k views

If I want to add a list of values as an HTTP Header, is there a standard way to do this? I couldn't find anything (that I could easily understand) in RFC 822. For example, is comma separated values ...
jconlin's user avatar
  • 3,896
76 votes
16 answers
72k views

I am using an open source library to connect to my webserver. I was concerned that the webserver was going extremely slow and then I tried doing a simple test in Ruby and I got these results Ruby ...
Earlz's user avatar
  • 64.3k
40 votes
9 answers
41k views

I'm using webbrowser control to login any site. And then i want to download some sub page html using WebRequest (or WebClient). This links must requires authentication. How to transfer Webbrowser ...
ebattulga's user avatar
  • 11.1k
25 votes
4 answers
54k views

I'm trying to use a local c# app to pull some images off a website to files on my local machine. I'm using the code listed below. I've tried both ASCII encoding and UTF8 encoding but the final file ...
Steve Brownell's user avatar
130 votes
5 answers
377k views

This is my first time ever using JSON as well as System.Net and the WebRequest in any of my applications. My application is supposed to send a JSON payload, similar to the one below to an ...
Hunter Mitchell's user avatar
28 votes
3 answers
31k views

In .NET is it possible to convert a raw HTTP request to HTTPWebRequest object? I'm sure .NET internally doing it. Any idea which part of the .NET is actually handling this? Can I call it or is there ...
88 votes
9 answers
107k views

I know you are all going to answer "use a debugging proxy server like Fiddler" but it's not that simple. Here's my situation: I have some code that runs on a server, in an ASP.NET page code-behind (...
eeeeaaii's user avatar
  • 3,450
52 votes
3 answers
204k views

I'm writing a small API-connected application in C#. I connect to a API which has a method that takes a long string, the contents of a calendar(ics) file. I'm doing it like this: HttpWebRequest ...
nelshh's user avatar
  • 1,051
47 votes
7 answers
141k views

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 with ...
rplusg's user avatar
  • 3,426
38 votes
5 answers
42k views

I'm trying to use Tor-Server as a proxy in HttpWebRequest, my code looks like this: HttpWebRequest request; HttpWebResponse response; request = (HttpWebRequest)WebRequest.Create("http://www.google....
Lay's user avatar
  • 381
19 votes
1 answer
22k views

Are there any limit to how many concurrent/parallel requests you can send using WebClient, HttpWebRequest, and HttpClient class in .NET 4.5? Or is it that you can send unlimited parallel requests if ...
Chenlei Shen's user avatar
15 votes
2 answers
78k views

I am curious if there is any library that handles already this kind of stuff, or I have to do it by myself once again. So, the thing is I want to get IP address field from the visitors HTTP header ...
Serenity Stack Holder's user avatar

1
2 3 4 5
18