Questions tagged [webrequest]

WebRequest is an abstract class in .NET Framework for making requests to URIs (including HTTP, HTTPS, FTP and FILE protocols). Related tags: [httpwebrequest], [ftpwebrequest].

WebRequest is an abstract class in .NET Framework for making a request to a Uniform Resource Identifier (URI).

MSDN documentation for WebRequest.

1600 questions
0
votes
1 answer

Webrequest, proxy and post data

when i send post data to the proxy server - it returns an error: Invalid Request error was encountered while trying to process the request: Some possible problems are: Missing or unknown request method. Missing URL. Missing HTTP Identifier …
0
votes
1 answer

Long running, but finite length HttpWebRequest Callout gets only partial data

I am trying to work with a 3rd party service api . One of the methods they have brings in all records which takes a lot of time , about 9 mins ( i tried this using chrome app "Advanced Rest Client"). I have tried setting the webRequest.Timeout =…
batrulz
  • 181
  • 5
  • 14
0
votes
2 answers

No connection could be made because the target machine actively refused it 127.0.0.1:8118

trying to create web request using Tor. getting this error - "Unable to connect to the remote server". Tor default proxy - 8118. i have goggled for it found solution for it using Tor as Proxy but it didn't worked for me. Code- Process p = new…
Nemi Chand
  • 138
  • 1
  • 10
0
votes
1 answer

Why this code is repeating files in listbox?

I want to list all files from my ftp folder, I am using this code. But it gives me twice the name of files. What is wrong with it? private void ListFilesOnServer() { try { FtpWebRequest request =…
Firdavs Kurbonov
  • 1,252
  • 4
  • 16
  • 42
0
votes
1 answer

How to refresh Memory Stream while downloading from FTP

I have code which downloads file(zip file) from ftp server. But when I change files inside zip file, it is downloading from memory. Telling that I mean when I download zip file in which there are file 1, file 2, file 3. Next time I change zip file…
Firdavs Kurbonov
  • 1,252
  • 4
  • 16
  • 42
0
votes
2 answers

Posting small bits of data in VB.NET

Is there another way to easily make a POST request in .NET other than the WebRequest class? I have a very, VERY small piece of data I need to post: password=theword ...but WebRequest randomly, and I mean randomly, drops the data when posting to…
AndrewBurton
  • 407
  • 7
  • 16
0
votes
2 answers

how to post files with web request in asp.net 4.0

i just want to post web request with multiple file from my server folder. Here I read this article. I just want to use this technique with Microsoft.Net.Http package from NuGet. here is my code : using System; using System.Configuration; using…
Shalin Gajjar
  • 229
  • 1
  • 5
  • 15
0
votes
1 answer

Spaces being removed when posting data from ASPX to ASP page, but spaces preserved when posting to ASPX page

Spaces being removed when posting data from ASPX to ASP page, but spaces preserved when posting data to ASPX page. Below is the sample code calling program code (aspx code behind) WebRequest request =…
afin
  • 546
  • 3
  • 11
  • 21
0
votes
2 answers

Webrequest cant "escape" timeout

Hi everyone im trying to create a method that will always return a url source, if for example internet goes off it will continue working until it comes up and return the url source and so on if something else occurs. So far in my method when i "turn…
Incognito
  • 435
  • 1
  • 7
  • 23
0
votes
1 answer

Tracing web service calls

Here is an outline of the technologies were are using for our project at work : -ASP.NET MVC 4 -Visual Studio 2012 and Visual Studio 2010 -Entity Framework Version 4 -Umbraco 6.1.6 We are invoking Web Services API belonging to a Third-party…
crazyTech
  • 1,379
  • 3
  • 32
  • 67
0
votes
1 answer

xmlrpc and System.Net.WebException .net 3.5 c#

I use CookComputing.XmlRpc; Trying to connect to trac using some requests but I get this: System.Net.WebExceptionStatus.ReceiveFailure {"The underlying connection was closed: An unexpected error occurred on a receive."} {"Unable to read data …
Enriquev
  • 929
  • 2
  • 9
  • 27
0
votes
0 answers

Make a Http-Request to an specific URL on windows phone

My problem is that i have to make a Http-Request to an specific URL. with the parameters: login and password. and the action is Login. Also I have to save the hash and use it for the next requests. Till now I have this: using System; using…
0
votes
1 answer

What is a better way to stop this worker thread?

I'm developing an application which periodically polls a web service for some data. The application has to run as a Windows service, thus it has to be started and stopped in an asynchronous way. I'm using threading for this. The main loop of the…
Massimo
  • 1,520
  • 1
  • 19
  • 36
0
votes
3 answers

What is the best way of pulling json data in terms of performance?

Currently I am using HttpWebRequest to pull json data from an external site, and the performance was not good. Is wcf much better? I need expert advice on this..
h3n
  • 5,142
  • 9
  • 46
  • 76
0
votes
2 answers

Silverlight WebRequest fails with "The URI prefix is not recognized"

I have a silverlight library that is supposed to get make a web service request and receive an xml response: Uri uri = new Uri("http://some_server:51306/getStuff.xml?id=14"); WebRequest request = WebRequest.Create(uri); However,…
Bogdan Gavril MSFT
  • 20,615
  • 10
  • 53
  • 74