Posted By

juanprimal on 11/18/11


Tagged

curl


Versions (?)

curl con php


 / Published in: CSS
 

  1. <?php
  2. $ch = curl_init('http://pagina.com/juan.php');
  3. curl_setopt ($ch, CURLOPT_POST, 1);
  4. curl_setopt ($ch, CURLOPT_POSTFIELDS, "val1=valor1&val2=valor2");
  5. curl_exec ($ch);
  6. curl_close ($ch);
  7. ?>

Report this snippet  

You need to login to post a comment.