emanuelx Posted July 24, 2013 at 11:08 PM Report #519869 Posted July 24, 2013 at 11:08 PM (edited) Eu tenho andado na net a fazer umas pesquisas, mas não tenho conseguido nada, por exemplo é possivél fazer um http post, e depois gravar o conteudo("html") numa variavél? Este é o código em php, mas eu não quero fazer em php, por causa do ip. Porque se eu usar este código fica o ip da máquina e não do cliente. $postdata = http_build_query( array( 'hash' => $hash, 'confirm' => 'submitButton' ) ); echo " postdata $postdata \n"; $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); echo " opts $opts \n"; $context = stream_context_create($opts); echo " context $context \n"; $result = file_get_contents($url, false, $context); Edited July 24, 2013 at 11:11 PM by emanuelx com calma e sem stresses
HappyHippyHippo Posted July 24, 2013 at 11:11 PM Report #519870 Posted July 24, 2013 at 11:11 PM https://www.portugal-a-programar.pt/forums/topic/61770-download-html-com-javascript/ IRC : sim, é algo que ainda existe >> #p@p Portugol Plus
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now