Can anybody tell me how to post to a ASP document and then retrieve the document body ? Any help is appreciated !
Regards,
Jeroen
perhaps you could find out the fields that the asp doc uses and try something like:
fopen(http://foo.com/whatever.asp?field1=$field1&field2=$field2&etc,"r");
rgds, scott d~
Sorry, but that would not work, that's simulating a GET method, and for ASP I certainly need a POST method, anyone else got an idea ?
You need to either roll your own or use any of the several POST routines that are available on the net. To roll your own you would have to read the HTTP protocol documentation. Here are links to a couple of POST routines:
http://www.zend.com/codex.php?id=77&single=1
http://px.sklar.com/code.html?code_id=313