473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

GetRequestStream blocks

I need help from someone who's familiar with HttpWebRequest. I'm trying to
extract data from a website that requires you to log in. I'm using the
GetRequestStream method to send the POST data.

I can successfully get through logging in, but there is a second post that
has to be done. When I call GetRequestStream a second time, it stays inside
the function. I haven't yet waited long enough to see what eventually might
happen.

I've already tried using a separate variable for both the HttpWebRequest and
the Stream, but the results are the same. Is there any reason it isn't able
to get a stream? I closed the first one.

Thanks,
Mike
Jun 4 '06 #1
3 2864
"Mike Markiewicz" <md*******@hotmail.com> wrote in message
news:uR*************@TK2MSFTNGP03.phx.gbl...
I need help from someone who's familiar with HttpWebRequest. I'm trying to
extract data from a website that requires you to log in. I'm using the
GetRequestStream method to send the POST data.

I can successfully get through logging in, but there is a second post that
has to be done. When I call GetRequestStream a second time, it stays
inside
the function. I haven't yet waited long enough to see what eventually
might
happen.


If you want retrieve data from website you should consider
HttpWebResponse.GetResponseStream();

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Jun 4 '06 #2
I'm trying to get a stream that I can write POST data to....
Jun 4 '06 #3
It's working. I think what fixed it was making sure to close all the
previous streams and response objects.

Mike
Jun 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Questions | last post by:
(can't find any of my previous post for same issue. please CC to my email address as well. Thanks!) Hi all, What is the possible reason that HttpWebRequest.GetRequestStream() may hang there...
3
by: Dan | last post by:
I'm experimenting with HttpWebRequest. After I've created a request: m_request = (HttpWebRequest) WebRequest.Create(uri); I'd like to repeatedly send requests to the URI, as follows: public...
3
by: Jason | last post by:
I'm having a hard time getting a call to HttpWebRequest's GetRequestSteam to work. Each time I try to run it, I get the following error: The underlying connection was closed: Unable to...
0
by: Luis Esteban Valencia | last post by:
Hello. I am making the practice of chapter 6. Biztalk Unleashed its about sending an HTTP request with a c# webform. I got this error Unable to complete web request. Web Exception error: Error...
0
by: a_newcomb | last post by:
I have an application which polls and connects to a webserver on a background thread. When the application is supposed to exit, I call abort on the HttpWebRequest object. I have observed that...
1
by: Albert Ludwig | last post by:
Hallo NewsGroup, in meiner Anwendung rufe ich ein Internet-asp-script auf. Diese Funktionalität habe ich in der Funktion "fuwHandelWebRequestPost" (siehe unten) gekapselt. Diese Funktion...
8
by: Jim Toth | last post by:
I have a multithreaded application that is posting XML requests to a remote web site. As more and more calls are made to HttpWebRequest.GetRequestStream, the length of time increases for each call...
1
by: ratnakarp | last post by:
Hi, I'm new to httpwebrequest programming. I'm using httpwebrequest to pull the rss file with contenttype as "GET". it works fine. I get all the results and store all the values in the list. the...
2
by: ZadaheaD | last post by:
Hello, i really need your help on this one. im trying to pass an XML by a web service using HttpWebRequest and a POST Method. here is my code : HttpWebRequestObj =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.