I'm sorry if it's answerd somewhere I couldn't find, but please help me: I want to read a page that requires me to in before I can read it. how can I send the POST data thorgh a script (that is so I won't have to click a button on a form)
Thanks inadvance
Bongulim
How to send POST data?
Moderator: General Moderators
Code: Select all
print"<script language="JavaScript">\n";
print"<!-- hide me \n";
print"window.document.yourformname.submit();\n";
print"// show me -->\n";
print"</script>";thanks hedge - I've find viewtopic.php?t=7063 helpful. quite solved it actually 
BTW the function 'httpParseResponse' in my code is incorrect. It explodes by \r\n\r\n when it should just split the headers from the content at the first occurrance of \r\n\r\nBongulim wrote:thanks hedge - I've find viewtopic.php?t=7063 helpful. quite solved it actually
Code: Select all
<form method="post" action="<?php echo $PHP_SELF ?>">
<input type="hidden" name="hiddenpostdata" value="hiddenpoststuff">
</form>