Created
October 22, 2013 02:41
-
-
Save onlyangel/7094405 to your computer and use it in GitHub Desktop.
Una implementaion de curl en php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fields = "XML=" . urlencode($xmlString); | |
// in this example, POST request was made using PHP's CURL | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $postUrl); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
$response = curl_exec($ch); | |
curl_close($ch); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment