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

Fastest way to connect to PHP file from C#

I am developing a turn-based game in C# that uses a PHP server. I have created a series of small PHP scripts that do all the necessary server processing. I am trying to determine the fastest way to connect to these scripts. Obviously, I can just use…
Ramsay Smith
  • 1,098
  • 13
  • 30
0
votes
0 answers

get google access_token from user credentials

I have user credentials of user gmail account, from that I have to retrieve access_token. How to do that? I've checked in google but couldn't find any solution. my final objective: I'm trying to fetch the contact profile picture from gmail. I think…
0
votes
0 answers

C# Application dealing with web request headers

Currently working on a project with a yahoo email manager, and I am trying to replicate a request header I've captured in Fiddler. Many of the variables I scrape beforehand from a previous GET response, but there's one that I can't figure out how is…
user3526345
  • 47
  • 1
  • 1
  • 5
0
votes
0 answers

ASP.NET: Server with Static IP, SMTP and WebRequest for Email and SMS not working

I have successfully tested both SMTP email as well as SMS(Using httpwebrequest) on my developer machine which uses normal IP address. But both SMTP mail and SMS are not working after I publish the files to client having server with static IP. Note:…
Srikanth
  • 3
  • 4
0
votes
3 answers

Trouble with MultiPart/Form-Data as a web request

I have a HTML POST request which i need to replicate in c# The HTML is something like
MarsOne
  • 2,155
  • 5
  • 29
  • 53
0
votes
0 answers

How to avoid UriFormatException?

I have an application on windows mobile platform cf3.5. This communicates with a web server and they do it nicely, requests get correct replies. However, on every request it throws a System.UriFormatException in visual studio output window. Uris…
Perrier
  • 2,753
  • 5
  • 33
  • 53
0
votes
0 answers

Response status : 404 using HttpClient in wp8.0

I had this code working but now suddenly it does not return "Response status code does not indicate success:404()".. what ever may be the URL it doesn't matter.. below is the code: protected async void getstring(string url) { …
max_code
  • 307
  • 3
  • 14
0
votes
1 answer

Do we need to encode urls before fetching them with HttpWebRequest or not

I am decoding urls to purest form which browsers display and then storing them at the MS SQL db (nvarchar column type) with srRelativeUrl = HttpUtility.UrlDecode(srRelativeUrl); My question is i am also fetching newly discovered urls…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
0
votes
1 answer

How to set handler for WebRequest.GetResponseAsync in IronRuby?

I'm trying: request = WebRequest.Create( uri ) responseTask = request.GetResponseAsync action = Action.new { process_request( sender, e ) } task = Task.new( action ) responseTask.Wait( TimeSpan.new( -1 ) ) responseTask.ContinueWith( task ) But…
ostapische
  • 1,572
  • 2
  • 12
  • 26
0
votes
1 answer

Webrequest faster downloading (Googled for days)

Im working on a project that downloads up to 5000 individual pieces of data from a server. It basically is a PHP page that takes POST variable, gets the data from the DB and sends it back to the .NET client. It is slow. It takes about 1 second per…
JaredNinja
  • 79
  • 10
0
votes
1 answer

Problems with threading and WebRequests

I'm sure there's some other threads about this, but i think i need a threading for dummies or something. My problem: I want to fetch a value by a WebRequest and display it. My code looks something like this: Foo = New Fetcher() AddHandler…
gubbfett
  • 2,157
  • 6
  • 32
  • 54
0
votes
1 answer

c# download weird behavior

So I'm trying to download files from internet using C#, and there are two kinds of files: .twb and .twbx, where .twbx is a zip containing a .twb and two other folders. My download program works fine when downloading .twb files, but when I download…
Tengyu Liu
  • 1,223
  • 2
  • 15
  • 36
0
votes
1 answer

Login Website, curious Cookie issue

Language: C# Development Environment: Visual Studio 2008 I want to login to a Website and get some Data from there. My Problem is that the Cookies does not work. Every time the Website says that I should activate Cookies but i activated the Cookies…
user297225
0
votes
1 answer

How can fetch tumbler images from tumbler in specific order like by date or random through tumbler api

I am facing the problem to fetch the data from tumbler in specific order . I am trying to fetch data in sorted order from tumbler through tumbler api which is as follows : url : …
user2102502
  • 417
  • 2
  • 6
  • 17
0
votes
1 answer

Using SSL/basic authentication and headers appear visible when I view posts on fiddler. Why?

I am using SSL on the Azure platform (provided out of the box) with basic authentication. The call works, but when I view the posts on fiddler, I see the authentication string and any other manual headers I add in what appears clear text. Should…
ProgramTheWorld
  • 537
  • 1
  • 4
  • 6