Click here to Skip to main content
15,887,373 members
Home / Discussions / C#
   

C#

 
QuestionHow to make chm file help in windows application? Pin
Eng Mohammed Osman6-May-08 7:58
Eng Mohammed Osman6-May-08 7:58 
AnswerRe: How to make chm file help in windows application? Pin
Thomas Stockwell6-May-08 8:10
professionalThomas Stockwell6-May-08 8:10 
QuestionStill Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
Anindya Chatterjee6-May-08 7:03
Anindya Chatterjee6-May-08 7:03 
AnswerRe: Still Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
led mike6-May-08 8:19
led mike6-May-08 8:19 
GeneralRe: Still Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
Anindya Chatterjee6-May-08 10:36
Anindya Chatterjee6-May-08 10:36 
GeneralRe: Still Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
led mike6-May-08 11:40
led mike6-May-08 11:40 
GeneralRe: Still Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
Anindya Chatterjee6-May-08 17:51
Anindya Chatterjee6-May-08 17:51 
AnswerRe: Still Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
Spacix One7-May-08 2:34
Spacix One7-May-08 2:34 
The lines in the log look like a DateTime stamp followed by HTTP headers. If you use HttpWebRequest you can access/change HTTP header information.

The problem you are having is this.

You open a WebBrowser control, launch the page and the user enters the catchup info and clicks download. When this finishes you capture the URL of the file once it is suppose to start downloading, that is the Navigating event you captured. You cancel that request (ending the server connection) and then try to launch a web client to download from the now expired URL. I seem to recall sending e.Cancel=true; is the same as pressing the "Stop" button inside IE.

What you might try doing, without getting into the HTTP headers is just move the e.Cancel=true; below your web client download (since you never opened the page, it might let you download it)


-Spacix
All your skynet questions[^] belong to solved

I dislike the black-and-white voting system on questions/answers. Dead | X|

GeneralRe: Still Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
Anindya Chatterjee7-May-08 2:38
Anindya Chatterjee7-May-08 2:38 
GeneralRe: Still Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
Spacix One7-May-08 2:47
Spacix One7-May-08 2:47 
RantRe: Still Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
Spacix One6-May-08 10:16
Spacix One6-May-08 10:16 
JokeRe: Still Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
That Asian Guy6-May-08 11:02
That Asian Guy6-May-08 11:02 
GeneralRe: Still Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
Anthony Mushrow6-May-08 11:22
professionalAnthony Mushrow6-May-08 11:22 
RantRe: Still Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
Spacix One6-May-08 11:30
Spacix One6-May-08 11:30 
GeneralRe: Still Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
led mike6-May-08 11:36
led mike6-May-08 11:36 
JokeRe: Still Stuck: How to intercept rapidshare download in WebBrowser control using Http POST Pin
Spacix One7-May-08 2:37
Spacix One7-May-08 2:37 
QuestionWatiN and VS 2008 Pin
Drew19846-May-08 6:18
Drew19846-May-08 6:18 
QuestionException Logging Application Block - Not Releasing File [modified] Pin
Tristan Rhodes6-May-08 5:44
Tristan Rhodes6-May-08 5:44 
AnswerRe: Exception Logging Application Block - Not Releasing File Pin
tgrt6-May-08 7:17
tgrt6-May-08 7:17 
GeneralRe: Exception Logging Application Block - Not Releasing File Pin
Tristan Rhodes6-May-08 22:42
Tristan Rhodes6-May-08 22:42 
Questionstop button capturing in BHO (IE) Pin
eswes6-May-08 5:42
eswes6-May-08 5:42 
AnswerRe: stop button capturing in BHO (IE) Pin
Spacix One6-May-08 10:10
Spacix One6-May-08 10:10 
AnswerRe: stop button capturing in BHO (IE) Pin
chhoussem26-Feb-09 2:59
chhoussem26-Feb-09 2:59 
QuestionAdd a signature to an e - mail message Pin
Christiaan Laubscher6-May-08 5:21
Christiaan Laubscher6-May-08 5:21 
AnswerRe: Add a signature to an e - mail message Pin
Dave Kreskowiak6-May-08 5:49
mveDave Kreskowiak6-May-08 5:49 

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.