Advertisement
Guest User

Untitled

a guest
Dec 6th, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. $url="<URL>";
  2. $curl = new Varien_Http_Adapter_Curl;
  3. $curl->setConfig(array('timeout' => 15));
  4. $curl->write(Zend_Http_Client::POST,$url, '1.1', array(), $poststring);
  5. $result = $curl->read();
  6. $curl->close();
  7.  
  8. $strCookie = 'PHPSESSID=' . $_COOKIE['PHPSESSID'] . '; path=/';
  9. curl_setopt( $curl, CURLOPT_COOKIE, $strCookie );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement