I need to submit a web form in a automatic way...
The form uses "action=" and "method="POST""
I can easely gather the information I need to send, including the "hidden" names and values...
But how do i arrange this data in my httprequest?
It would be MUCH easier to simulate a click on the submit button, but it is somehow iludding me...
Post is pretty simple really, all you need to do is create a string (in this example s) that is of the format varable=answer&varable=answer the answers must be URLencoded.
Other than that all I am doing is setting the method to POST and telling the server to expect everything in URLencoded form.
wwwreq is of corse a http request object and bit is a bitwize object, and writer is a binaryfile object.