October 27th, 2011, 04:28 PM
Pressing a button in an webpage
I have the following problem.
I can download the content of a webpage on site using CInternetSession and CInternetSession::OpenURL().
So far, so good.
Now on the webpage I'm interest in there is a button, which, when pressed, downloads a file to my computer. Now I would like to write a code for downloading this file. That is, I want the server to "think" I have pressed the button. I looked up through GetHttpConnection and GetHttpConnection::OpenRequest() by I coudn't find how to do it.
Can anyone help me? Thanks a lot.
October 27th, 2011, 05:07 PM
Re: Pressing a button in an webpage
A button-press on a web page often sends a POST request to the server.
You can "spy" on the communications between a working browser and the server, when you press a button, to see what messages are exchanged. Then you can write your program to mimic the exchanged messages. One popular "spy" is the Fiddler web proxy, see http://www.fiddler2.com/fiddler2/
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!