Top "Webrequest" questions

WebRequest is a abstract class in .NET Framework for making requests to URIs (including HTTP, HTTPS, FTP and FILE protocols).

How to send a POST with a JSON in a WebRequest() call using MQL4?

I would like to send a POST from MQL4-script, using a JSON-format to a Node-server. I've tried the webRequest() …

json webrequest mql4
How to properly catch a 404 error in .NET

I have the following code: HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Method = "HEAD"; request.Credentials = MyCredentialCache; try { request.GetResponse(); } …

c# webrequest
Mocking WebResponse's from a WebRequest

I have finally started messing around with creating some apps that work with RESTful web interfaces, however, I am concerned …

xml web-services rest webrequest webresponse
WebRequest to connect to the Wikipedia API

This may be a pathetically simple problem, but I cannot seem to format the post webrequest/response to get data …

c# mediawiki webrequest wikipedia wikipedia-api
Upload a file to an FTP server from a string or stream

I'm trying to create a file on an FTP server, but all I have is either a string or a …

c# .net ftp webrequest ftpwebrequest
Can I send an empty HTTP POST WebRequest object from C# to IIS?

Do I need to just slap some random garbage data in a WebRequest object to get by the HTTP status …

c# iis-7 webrequest
URL forwarding using Chrome webRequest after response is received

I am attempting to create a Chrome extension that utilizes Chrome's webRequest module to perform a redirect to a URL …

javascript google-chrome google-chrome-extension webrequest
How to Replace WebClient with HttpClient?

I have the following WebClient inside my asp.net mvc web application: using (WebClient wc = new WebClient()) // call the Third …

.net webclient webrequest webclient-download
Handling Redirection in .NET WebRequest

I'm behind a firewall that asks me to enter credentials before letting me access internet. So my first http request …

c# webrequest
System.Net.WebRequest - Timeout error

The below piece of code is giving Error Message : "The operation has timed out" Error Sourse : at System.Net.httpWebRequest.…

c# asp.net http httpwebrequest webrequest