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
3 answers

Redirect all requests to another url

I have sip application on my iPhone. It uses sip.server.com url to send requests and get responces. How can I redirect all request (not only http) from my domen to sip.server.com and then all responces from sip.server.com redirect to the application…
Paul T.
  • 4,938
  • 7
  • 45
  • 93
0
votes
1 answer

Form reloading data and Class variables resetting in VB.net

This program basically goes to a websites and gets all the links in a specific div tag. It then navigates to each link and gets the links in those pages as well. However, after getting the first links successfully and traveling to the first website,…
Moraki
  • 243
  • 1
  • 3
  • 9
0
votes
1 answer

Getting data from a website

since a couple of days I'm trying to write a C# program for my WP7 phone to get some kind of data file from a website. There is a main link (http://www.convert-control.de/plant/53752/yield/2012) which generates a chart view of the yield my solar…
0
votes
0 answers

C#: Make http/webrequest similar to that of Curl in PHP

I am trying to make a webrequest in C# which is similar to that of CuRL in PHP. But I keep on getting issue of authentication. I wonder if the issue is in my credentials or the webrequest that I make. Following is the code for PHP CuRL request that…
faizanjehangir
  • 2,771
  • 6
  • 45
  • 83
0
votes
2 answers

(403) Forbidden upon WebRequest

I'm trying to create a general whereabouts locator for my chat program. It currently shows IP, Username and I'm trying to add Location. I'm attempting to use this piece of code: var location = ""; List HTML_code = new…
Daaksin
  • 834
  • 3
  • 13
  • 28
0
votes
1 answer

Multiple POST using WebRequest

I am able to send the first request working fine, however I can't get my head round why it stalls on getting the Stream os = smsRequest.GetRequestStream() the second time. I am aware that you can't write to a Request more than once that is why a new…
Chris Crew
  • 353
  • 4
  • 15
0
votes
1 answer

How to use HttpWebRequest class for get real multiresponse

I have some logic issues with HttpWebRequest class. I using HttpWebRequest class from System.Net namespace, and when I doing this: while(true) { HttpWebRequest request = WebRequest.Create("http://somesite.com/") as HttpWebRequest; …
Rahna1970418
  • 2,285
  • 2
  • 12
  • 9
0
votes
1 answer

SUbmitting a webform from windows application

I am new to C# i want to develop a windows application to automate work. Like i have a webform where user always goto that site he has to click the submit link. So i want to do it automate. I am able to create a webrequest to the site by using 1st…
0
votes
1 answer

Software That Create Alter Edit Web Requests to A Site

I need a software that acts as a web browser and also gives user the ability to examine web requests and reponses, also change/alter/edit them.
user1599986
  • 31
  • 1
  • 6
0
votes
3 answers

How do I find the XML error returned by an API call using Powershell?

I've got an API that I'm trying to test. The API returns specific comments on errors. Example: distance.out.of.range When querying the API in Chrome or Firefox, I see this XML. However, when querying with IE or…
Eddy Jones
  • 43
  • 5
0
votes
3 answers

Catching HttpWebRequest Timeout

public int loginEmail(string email, string password) { HttpWebRequest request = null; string responseStr = null; string Email = email; string Pass = password; UTF8Encoding encoding = new UTF8Encoding(); …
ChrisB
  • 93
  • 3
  • 9
0
votes
2 answers

IIS/Cache problem?

I have a program that checks if a file is present every 3 seconds, using webrequest and webresponse. If that file is present it does something if not, ect, that part works fine. I have a web page that controls the program by creating the file with a…
Shawn
  • 2,356
  • 6
  • 48
  • 82
0
votes
1 answer

Why is Webrequest adding \n and \" into result?

I want to consume a json webservice. When i fire the webrequest, .NET is adding \n and \" to the result. I tried WebRequest and RestSharp. But i cant deserialize because of this characters. result in internet explorer: { "resultCount":1, …
David Müller
  • 97
  • 2
  • 8
0
votes
3 answers

Performing requests using WebRequest and a Stream

public class MyWebRequest { private WebRequest request; private Stream dataStream; private string status; public String Status { get { return status; } set { …
user1952219
0
votes
1 answer

Windows Phone 8 Web Request Async Call for XML

I have a php service that generates XML. How can I parse the XML in C#? I tried using something like this: WebRequest request = WebRequest.Create("http://devstage.jokeroo.com/rest.php"); request.Method = "GET"; request.ContentType =…
Alek Arsovski
  • 339
  • 3
  • 18
1 2 3
99
100