'How to start Internet Explorer browser instance with POST request
I have a two part question:
is there any way to start Internet Explorer and have it immediately send a POST request to some URL? I know you can start IE with a URL and have to send a GET, but I need to do a POST
is there any way to start IE browser instance with a set of cookies?
Solution 1:[1]
No, but if you're in control of the web application you can load a page that immediately does a POST through Javascript.
Solution 2:[2]
No and no.
Well, theoretically the 2nd one is possible. You can use the Wininet UrlCacheEntry functions to clean out all the old cookies and write whatever new cookies you want. But that's a long painful road you really don't want to go down.
You should just use cURL.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Christoffer Hammarström |
| Solution 2 | Community |
