Click here to Skip to main content
15,896,269 members
Home / Discussions / C#
   

C#

 
QuestionWriting output in a windows application Pin
Jerry Graham6-May-08 11:21
Jerry Graham6-May-08 11:21 
AnswerRe: Writing output in a windows application Pin
Pete O'Hanlon6-May-08 11:28
mvePete O'Hanlon6-May-08 11:28 
GeneralRe: Writing output in a windows application Pin
Jerry Graham6-May-08 11:30
Jerry Graham6-May-08 11:30 
AnswerRe: Writing output in a windows application Pin
Gareth H6-May-08 11:30
Gareth H6-May-08 11:30 
AnswerRe: Writing output in a windows application Pin
PIEBALDconsult6-May-08 13:46
mvePIEBALDconsult6-May-08 13:46 
QuestionGet mouse coordinates relative to control in separate application... Pin
Edmundisme6-May-08 10:40
Edmundisme6-May-08 10:40 
AnswerRe: Get mouse coordinates relative to control in separate application... Pin
Christian Graus6-May-08 11:37
protectorChristian Graus6-May-08 11:37 
GeneralRe: Get mouse coordinates relative to control in separate application... Pin
Edmundisme7-May-08 8:21
Edmundisme7-May-08 8:21 
QuestionWindows Service - Service Thread Not Starting Pin
ooten146-May-08 10:03
ooten146-May-08 10:03 
AnswerRe: Windows Service - Service Thread Not Starting Pin
PIEBALDconsult6-May-08 13:45
mvePIEBALDconsult6-May-08 13:45 
GeneralRe: Windows Service - Service Thread Not Starting Pin
ooten147-May-08 9:16
ooten147-May-08 9:16 
GeneralRe: Windows Service - Service Thread Not Starting Pin
PIEBALDconsult7-May-08 13:07
mvePIEBALDconsult7-May-08 13:07 
QuestionA problem unloading Application Domains Pin
Togakangaroo6-May-08 8:30
Togakangaroo6-May-08 8:30 
AnswerRe: A problem unloading Application Domains Pin
Togakangaroo7-May-08 8:11
Togakangaroo7-May-08 8:11 
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 

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.