Click here to Skip to main content
15,913,214 members
Home / Discussions / C#
   

C#

 
AnswerRe: Checkbox Pin
Luc Pattyn9-Jul-10 1:15
sitebuilderLuc Pattyn9-Jul-10 1:15 
AnswerRe: Checkbox Pin
Łukasz Nowakowski9-Jul-10 3:19
Łukasz Nowakowski9-Jul-10 3:19 
GeneralRe: Checkbox Pin
Richard Blythe9-Jul-10 5:37
Richard Blythe9-Jul-10 5:37 
AnswerRe: Checkbox Pin
T M Gray9-Jul-10 10:40
T M Gray9-Jul-10 10:40 
QuestionData driven unit tests: how does the test framework determine the datarow-order? Pin
Erik8-Jul-10 22:11
Erik8-Jul-10 22:11 
AnswerRe: Data driven unit tests: how does the test framework determine the datarow-order? Pin
Luc Pattyn8-Jul-10 23:31
sitebuilderLuc Pattyn8-Jul-10 23:31 
GeneralRe: Data driven unit tests: how does the test framework determine the datarow-order? Pin
Erik8-Jul-10 23:58
Erik8-Jul-10 23:58 
QuestionHttpWebRequest.GetResponse() hangs Pin
Quiltfish8-Jul-10 21:49
Quiltfish8-Jul-10 21:49 
So here's the situation: I'm trying to fetch a series of files from a webserver (the request is handled by a php script which redirects to a txt file,if that matters). I use a BackgroundWorker to loop through the number of files to fetch and a HttpWebRequest to get the filename and contents (I think I have to use HttpWebRequest because I need the filename). Then I use the WebRequests GetResponse() method to get the filename from the headers and the content from the Response stream. However, the program hangs at the third call to GetResponse without fail.No exception, no nothing. This code will reproduce the problem: (It is the minimum I have to do to reproduce it, it only retrieves the filename)
for (int i = Start; i <= End; i++)
{
    HttpWebRequest HWR = HttpWebRequest.Create("http://www.deckcheck.net/export.php?deck=" + i.ToString() + "&type=txt") as HttpWebRequest;
    HWR.Method = "GET";
    HWR.KeepAlive = false;

    WebResponse Resp = HWR.GetResponse();
    Name = Resp.Headers["Content-disposition"].Substring(Resp.Headers["Content-disposition"].IndexOf("filename=") + 9);
    System.Windows.Forms.MessageBox.Show(Resp.Headers["Content-disposition"].Substring(Resp.Headers["Content-disposition"].IndexOf("filename=") + 9));
}

It's always the third call since program startup, too. Confused | :confused:
I havn't done much network coding, so if you need more info, just ask.
AnswerRe: HttpWebRequest.GetResponse() hangs Pin
Luc Pattyn8-Jul-10 23:27
sitebuilderLuc Pattyn8-Jul-10 23:27 
GeneralRe: HttpWebRequest.GetResponse() hangs Pin
Quiltfish9-Jul-10 0:54
Quiltfish9-Jul-10 0:54 
AnswerRe: HttpWebRequest.GetResponse() hangs Pin
Ennis Ray Lynch, Jr.9-Jul-10 3:22
Ennis Ray Lynch, Jr.9-Jul-10 3:22 
QuestionCurrency Conversion from Euro to other.. Pin
rahul.net118-Jul-10 19:13
rahul.net118-Jul-10 19:13 
AnswerRe: Currency Conversion from Euro to other.. Pin
Abhinav S8-Jul-10 19:21
Abhinav S8-Jul-10 19:21 
GeneralRe: Currency Conversion from Euro to other.. Pin
rahul.net118-Jul-10 20:01
rahul.net118-Jul-10 20:01 
AnswerRe: Currency Conversion from Euro to other.. Pin
elchupathingy8-Jul-10 19:26
elchupathingy8-Jul-10 19:26 
GeneralRe: Currency Conversion from Euro to other.. Pin
rahul.net118-Jul-10 19:51
rahul.net118-Jul-10 19:51 
GeneralRe: Currency Conversion from Euro to other.. Pin
SeMartens8-Jul-10 20:59
SeMartens8-Jul-10 20:59 
AnswerRe: Currency Conversion from Euro to other.. Pin
Luc Pattyn8-Jul-10 23:34
sitebuilderLuc Pattyn8-Jul-10 23:34 
QuestionRecreate email from database record Pin
RCoate8-Jul-10 17:15
RCoate8-Jul-10 17:15 
AnswerRe: Recreate email from database record Pin
Abhinav S8-Jul-10 18:43
Abhinav S8-Jul-10 18:43 
GeneralRe: Recreate email from database record Pin
RCoate8-Jul-10 20:18
RCoate8-Jul-10 20:18 
QuestionHowto: get a textbox to display bytes as 0's and 1's.. ? Pin
Shaareable8-Jul-10 15:48
Shaareable8-Jul-10 15:48 
AnswerRe: Howto: get a textbox to display bytes as 0's and 1's.. ? Pin
JF20158-Jul-10 18:20
JF20158-Jul-10 18:20 
AnswerRe: Howto: get a textbox to display bytes as 0's and 1's.. ? Pin
Abhinav S8-Jul-10 18:46
Abhinav S8-Jul-10 18:46 
GeneralRe: Howto: get a textbox to display bytes as 0's and 1's.. ? Pin
harold aptroot8-Jul-10 23:09
harold aptroot8-Jul-10 23:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.