I have this url that I'm connecting to using a WebRequest. For some reason I can't seem to figure out how to download the resulting PDF. It works fine in a browser. I put a webbrowser control on a form and it works too. (I can't have the pdf save automatically with a webbrowser control so that seems to be out of the question.).
When I put the url into my web browser and then look at the source the following HTML file is sent back. The thing I find bizzare is the src in the embed tag is the exact url I was using to get the PDF in the first place.
Can anyone help me out? I'm just looking to download the file automatically.
Thanks in advance,
M
<html>
<body marginwidth="0" marginheight="0">
<embed height="100%" width="100%" name="plugin" src="http://localhost/testapp" type="application/pdf"/>
</body>
</html>
When I put the url into my web browser and then look at the source the following HTML file is sent back. The thing I find bizzare is the src in the embed tag is the exact url I was using to get the PDF in the first place.
Can anyone help me out? I'm just looking to download the file automatically.
Thanks in advance,
M
<html>
<body marginwidth="0" marginheight="0">
<embed height="100%" width="100%" name="plugin" src="http://localhost/testapp" type="application/pdf"/>
</body>
</html>