Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 6th, 2012  |  syntax: None  |  size: 0.32 KB  |  views: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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 );