SHARE
TWEET

Untitled

a guest Dec 6th, 2012 21 Never
  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 );
RAW Paste Data
Top