The website is runing a JSP which determines which file to send. In order
to download a file using the WebBrowser, we have caught the link to the JSP
and cancelled the navagating (thought the Navagating event of the
webBrowser). We then download the file using the client application. The
problem is that I do not know the filename as it is sent down via a stream
without the filename attached (or at least I don't know how to determine the
filename). If you executed the link in IE or Firefox normally, the saveas
dialog will popup with the filename. I want to know how I can determine the
filename using the WebRequest etc. so that I know what file is being sent
and how to execute the file. ie. Zip, xml, doc, etc.
Most samples I have looked at have the filename linked to the URL and they
just parse out the filename. My URL is a simple JSP and therefore I can't
tell what the filename is.
Steve
"Cor Ligthert [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Steve,
>
> Can you explain this more, because this sounds like plain hacking.
>
> Cor
>
> "Steve" <(E-Mail Removed)> schreef in bericht
> news:44c13e43$0$23783$(E-Mail Removed)...
>>I am trying to create a downloader which will bypass the saveas box in the
>>WebBrowser control. I have the file downloading, but I don't know what
>>the filename is that is being passed through the stream. Is their a way
>>to determine what the file name is so that I can execute the appropriate
>>functionality of the extensions. The stream is created dynamically so I
>>cannot capture the filename straight from the URL.
>>
>>
>> Thanks
>> STeve
>>
>>
>> --
>> Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
>> ------->>>>>>http://www.NewsDemon.com<<<<<<------
>> Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
>
>
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>
http://www.NewsDem