Questions tagged [webresponse]
135 questions
0
votes
2 answers
ResponseStream re-read after read timeout
I am wondering when I read a response stream and a timeout occurs, can I retry the read? Or do I have to make a new request? The server that I am downloading from does not support resuming, so I need to protect against timeouts.

John Sheares
- 671
- 1
- 12
- 23
0
votes
1 answer
reading files in subfolders in directory c# streamreader
I need to find all files and all subfolders in a directory. I am omitting the FtpWebRequest. Here is what I have written so far:
private string[] fileList () {
StringBuilder result = new StringBuilder();
WebResponse response = null;
…

avidprogrammer
- 57
- 1
- 11
0
votes
1 answer
Continuous calls to a URL causing exception to occur : The remote server returned an error: (500) Internal Server Error.
Following is the code snippet which i am trying to execute for an application i need. I am logging the couts till which the server is not throwing exception
But the counter (i) which i have provided goes till 170-190 records.
for (int j…

Ravi Sankar Rao
- 1,050
- 11
- 26
0
votes
1 answer
Responding to a WebRequest
I have created a simple XML Request on test.aspx page.
System.Net.WebRequest req = System.Net.WebRequest.Create("http://server.loc/rq.aspx");
req.ContentType = "text/xml";
req.Method = "POST";
string strData =…

mko
- 6,638
- 12
- 67
- 118
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
0 answers
Add Data to WebResponse
I sent some data by webrequest POST method. I know how to catch and modify the data, but I can't put it back to response and send it back to the client. I tried 4 ways to do it, but nothing worked.
SERVER PART
this.Response.ContentType =…

Miko
- 47
- 1
- 12
0
votes
2 answers
HttpWebRequest and HttpWebResponse
I am trying to get the Response string by using C#'s WebRequest and WebResponse classes.
It pulls the string but some part such as forms are missing from response.But when I open the same URL in browser(manually) and inspect elements using firebug…

user1871770
- 53
- 1
- 7
0
votes
1 answer
post the form data to server in C# console application
I am trying to post the data from this form internally using C# console application. But i dont understand why its not working. Below is the form inside the body tag of html page.
0
votes
2 answers
get files via webrequest and webresponse c#
I'm looking for a way to "scan" my weblocation (using a stream and webrequest/webresponse) to figure out which files are in that particular folder.
I would like to list these files.
Is this possible at all? I've tried several examples online, but…

Rob
- 3,556
- 2
- 34
- 53
0
votes
1 answer
using web sites to transfer xml
How do I setup a scenario where one website hosted at X publishes a URL that when browsed to will return purely XML.
A web page elsewhere is going to hit this URL, load the XML into objects.
So I want a url like…

Robert Hancliff
- 57
- 5
0
votes
1 answer
webresponse not updating the XML
i m facing a problem with WebResponse Property it is not properly updating in my Windows phone 7 application.
ReceiveData() // I m calling this Function recursively, With Timer.
{
strurl =…

KATy
- 73
- 1
- 12
-1
votes
1 answer
Deserialize Json to list and save to database
Want to deserialize Json in list and save to database.
public class APICallsResponse
{
public string CODE { get; set; }
public string STATUS { get; set; }
public string MESSAGE { get; set; }
public string TOTAL_RECORDS { get; set;…
-2
votes
1 answer
Getting page from Post request via button press C#
I am attempting to get information from a web page that is generated after a button is selected. This information is generated from a Post request (I think) and I am trying to send this request using c#. All of my attempts for different post…

Tyler Nichols
- 196
- 3
- 14
-2
votes
1 answer
python how to check answer of web browser
I need help with python...
Do you know how I can check response of web browser after clicking button login (here: submit)?
I want to compare html code and return True if my login will be a successful but unfortunately I don't know how. :/ Any hint…

margie
- 1
-2
votes
1 answer
Why does WebResponse from web page have trailing space?
I have written a PHP page on a web site to respond with OK. In PHP, this has been done with:
echo 'OK';
When I request the page in .NET and read the response into a string, the resulting string has a trailing space, so it is 'OK '. The length of…

CJ7
- 22,579
- 65
- 193
- 321