I would like my C# desktop application to send a POST containing a file to a website (out of my control).
Then the application should open the RESPONSE in the default browser.
I havn't been able to achieve this. Is it even possible?
So far I've tried the following approaches with no success:
I created a HTML page that automatically sent a POST FORM via JS. I then opened it using Process.Start(). The problem is that I can't specify the path to the FILE input field. So a dead end.
I used WebClient.UploadValues(...), and the wrote the response to a static local HTML file. Then I opened the HTML file using Process.Start(). The problem is that no images, cookies and such are present so I ended up with a dead static local HTML page.
- I used WebClient.UploadValues(...), but I seem incapable of redirecting the RESPONSE to a browser.
Any help would be greatly appreciated!