Linked Questions

143 votes
3 answers
232k views

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 = (...
William Calleja's user avatar
4 votes
8 answers
19k views

How do you do a Remote HTTP Post (request) in C#?
localhost's user avatar
  • 861
5 votes
2 answers
26k views

How do i make a curl request in c# in windows or i want to make web request with this parameters and it should receive a valid response request curl 'http://www1.bloomingdales.com/api/store/v2/...
Mounarajan's user avatar
  • 1,437
4 votes
1 answer
50k views

I have a Node server hosted with Azure, where I can send a POST request to the API for it to perform some function. The API itself works, I have tested it with Post Man. A call to the API would look ...
Bejasc's user avatar
  • 970
0 votes
1 answer
11k views

I want to send POST with parameters, but I don't know how to do it. My code: Uri resourceAddress = new Uri("http://web.com/geo"); try { HttpResponseMessage response=await httpClient.PostAsync(...
Javier Iniesta Fernández's user avatar
0 votes
1 answer
2k views

How can i make the following post request in c# fetch("http://172.16.1.1:8090/login.xml", { "headers": { "accept": "*/*", "accept-language": ...
harsh joshi's user avatar
0 votes
1 answer
975 views

Our third party payment gateway provider only supports the FORM POST for handshake, payment and payment verification etc. For this we need to perform a POST from C#.NET. Could someone help me whether ...
Nil Pun's user avatar
  • 17.4k
0 votes
1 answer
278 views

I have a problem. I am trying to get the content of my webpage, so I found this code: WebClient client = new WebClient(); string downloadString = client.DownloadString("mysite.org/page.php"); But I ...
user avatar
0 votes
0 answers
200 views

Python code to c# .net for HTTP Post to API response = requests.post(auth_url, auth=('apitoken', api_token), data={'grant_type': 'client_credentials'}) response.raise_for_status() access_token = ...
Venu immadi's user avatar
  • 1,605
0 votes
0 answers
83 views

for example, spring boot has annotations for certain methods (post, get, request body, etc..) What attributes should be supplied for the arguments in the method, for example: [HttpPost] public ...
Daniel Vai's user avatar
291 votes
24 answers
396k views

I have some issues trying to wrap my code to be used in unit tests. The issues is this. I have the interface IHttpHandler: public interface IHttpHandler { HttpClient client { get; } } And the ...
tjugg's user avatar
  • 3,467
277 votes
6 answers
252k views

Our web application is running in .NET Framework 4.0. The UI calls the controller methods through Ajax calls. We need to consume the REST service from our vendor. I am evaluating the best way to ...
user3092913's user avatar
  • 2,785
186 votes
3 answers
186k views

What difference is there between the WebClient and the HttpWebRequest classes in .NET? They both do very similar things. In fact, why weren't they merged into one class (too many methods/variables etc ...
GurdeepS's user avatar
  • 67.6k
44 votes
9 answers
24k views

When using the System.Net.WebClient.DownloadData() method I'm getting an unreasonably slow response time. When fetching an url using the WebClient class in .NET it takes around 10 sec before I get a ...
moevi's user avatar
  • 441
44 votes
4 answers
182k views

I use codes below to send POST request to a server: string url = "http://myserver/method?param1=1&param2=2" HttpClientHandler handler = new HttpClientHandler(); HttpClient httpClient = new ...
Vahid's user avatar
  • 3,452

15 30 50 per page
1
2 3 4 5
12