HTTP GetResponse problem
-
I’m trying to scrape a site but I’m having a problem. My program works for 4 iterations and then stops. I ported this code, line for line, over to Perl and it works fine. I stepped through the C# code and found that it hangs on this line: objStream = wrGETURL.GetResponse().GetResponseStream(); But it only hangs on the fifth time, it works for the first four times. This is baffling me, so I'm hoping one of you guys can figure out what is wrong.
-
I’m trying to scrape a site but I’m having a problem. My program works for 4 iterations and then stops. I ported this code, line for line, over to Perl and it works fine. I stepped through the C# code and found that it hangs on this line: objStream = wrGETURL.GetResponse().GetResponseStream(); But it only hangs on the fifth time, it works for the first four times. This is baffling me, so I'm hoping one of you guys can figure out what is wrong.
Try an "objReader.Close();" before it goes out of scope. (If this message is posted twice, sorry.. CP gives me all kinds of fits about posting message. It errors out about 50% of the time. Never know if it got posted until I see them actually appear.) Rocky Moore <><
-
I’m trying to scrape a site but I’m having a problem. My program works for 4 iterations and then stops. I ported this code, line for line, over to Perl and it works fine. I stepped through the C# code and found that it hangs on this line: objStream = wrGETURL.GetResponse().GetResponseStream(); But it only hangs on the fifth time, it works for the first four times. This is baffling me, so I'm hoping one of you guys can figure out what is wrong.
Hi, I run your code. In my first trial , after a time , it seemed to be stopped. Yes it was at index 4. Later i decided to debug your code and it worked well. Later i made it run without debugging, guess, it worked well again. That means that there doesn't seem to be a code problem. Cheers, Doing something is better than doing nothing. So ... Move !
-
Try an "objReader.Close();" before it goes out of scope. (If this message is posted twice, sorry.. CP gives me all kinds of fits about posting message. It errors out about 50% of the time. Never know if it got posted until I see them actually appear.) Rocky Moore <><