Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url="<URL>";
- $curl = new Varien_Http_Adapter_Curl;
- $curl->setConfig(array('timeout' => 15));
- $curl->write(Zend_Http_Client::POST,$url, '1.1', array(), $poststring);
- $result = $curl->read();
- $curl->close();
- $strCookie = 'PHPSESSID=' . $_COOKIE['PHPSESSID'] . '; path=/';
- curl_setopt( $curl, CURLOPT_COOKIE, $strCookie );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement