853 questions
1500
votes
17
answers
2.6m
views
Send HTTP POST request in .NET
How can I make an HTTP POST request and send data in the body?
411
votes
12
answers
597k
views
Make an HTTP request with android
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....
743
votes
53
answers
1.7m
views
The request was aborted: Could not create SSL/TLS secure channel
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 ...
352
votes
16
answers
958k
views
How to post JSON to a server using C#?
Here's the code I'm using:
// create a request
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create(url); request.KeepAlive = false;
request.ProtocolVersion = HttpVersion.Version10;
request....
169
votes
16
answers
442k
views
How to ignore the certificate check when ssl
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 ...
67
votes
4
answers
72k
views
Max number of concurrent HttpWebRequests
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:...
124
votes
4
answers
214k
views
How do I use WebRequest to access an SSL encrypted site using HTTPS?
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);
...
324
votes
13
answers
813k
views
Pure JavaScript Send POST Data Without a Form
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 ...
58
votes
5
answers
149k
views
Adjusting HttpWebRequest Connection Timeout in C#
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....
28
votes
4
answers
12k
views
HttpWebRequest to URL with dot at the end
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 ...
28
votes
2
answers
44k
views
how to use cookies with HttpWebRequest
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 ...
181
votes
5
answers
606k
views
How to properly make a http web GET request
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 ...
86
votes
14
answers
99k
views
How secure is a HTTP POST?
Is a POST secure enough to send login credentials over?
Or is an SSL connection a must?
99
votes
3
answers
103k
views
Standard for adding multiple values of a single HTTP Header to a request or response
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 ...
76
votes
16
answers
72k
views
HttpWebRequest is extremely slow!
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 ...
40
votes
9
answers
41k
views
Is it possible to transfer authentication from Webbrowser to WebRequest
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 ...
25
votes
4
answers
54k
views
How to use httpwebrequest to pull image from website to local file
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 ...
130
votes
5
answers
377k
views
Send JSON via POST in C# and Receive the JSON returned?
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 ...
28
votes
3
answers
31k
views
Converting Raw HTTP Request into HTTPWebRequest Object
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
How do I see the raw HTTP request that the HttpWebRequest class sends?
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 (...
52
votes
3
answers
204k
views
C# HttpWebRequest of type "application/x-www-form-urlencoded" - how to send '&' character in content body?
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 ...
47
votes
7
answers
141k
views
Proxy Basic Authentication in C#: HTTP 407 error
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 ...
38
votes
5
answers
42k
views
using Tor as Proxy
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....
19
votes
1
answer
22k
views
Maximum concurrent requests for WebClient, HttpWebRequest, and HttpClient
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 ...
15
votes
2
answers
78k
views
How can I retrieve IP address from HTTP header in Java [duplicate]
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 ...