Hi guys and girls,
first of all - my apologies for not being more clear on this.
I am working with some internal sites with sensitive data, so can't show specific examples.
I log onto an internal website which and select some options then click submit.
Then a table is shown, which is generated from a POST request to that site.
This POST request has a header including a very long cookie string.
website inspector gives me the following info:
Host: (cant.tell.you.sorry)
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/plain, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: (cant.tell.you.sorry)
Content-Length: 2646
Cookie: (1545 characters what looks partially base64 encoded data – with session id, session time etc.)
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
then there's a request body with 2646 characters of parameters, which are basically the options I selected and submit.
Would it be possible for me to send all this data from VBA in a POST request and get the data that fills the table back?
I've been trying to find the answer, but most WinHTTP or XML vba queries I find that handle a POST request, don't send along content and cookie information.
Again, sorry to be vague, but any help or pointers are appreciated!
Cheers,
Jasper
Bookmarks