Jump to content

eszcsq

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

852 profile views

eszcsq's Achievements

Newbie

Newbie (1/14)

10

Reputation

  1. And how could i get emails without storing all html, i think web data extractor is the best email scraper around :( but no key for it
  2. thanks what anyone has the key please ?
  3. rukov, please i know its been some years but do you still have that reg.key ?:D
  4. Ajutor, <?PHP define("COOKIE_FILE", "cookie.txt"); $data1 = array( 'itemNumber' => '1', 'quantity' => '1', ); $data2 = array( 'date' => 'date', ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://www.myacmeshop.com/addproduct'); curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_COOKIESESSION, true); curl_setopt($ch, CURLOPT_COOKIEJAR, realpath(COOKIE_FILE)); curl_setopt($ch, CURLOPT_FAILONERROR, false); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_FRESH_CONNECT, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($ch, CURLOPT_POSTFIELDS, $data1); $result = curl_exec($ch); curl_close($ch); $pattern = "#Set-Cookie: (.*?; path=.*?;.*?)\n#"; preg_match_all($pattern, $result, $matches); array_shift($matches); $cookie = implode("\n", $matches[0]); // Prima sectiune merge afisaeaza produsu si arata ca e 1 in cart mai jos dispare morti masi.... $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://www.myacmeshop.com/addproduct'); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_COOKIESESSION, true); curl_setopt($ch, CURLOPT_FAILONERROR, false); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); curl_setopt($ch, CURLOPT_FRESH_CONNECT, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_POST, false); curl_setopt($ch, CURLOPT_POSTFIELDS, $data2); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_CAINFO, getcwd().'/web'); $result = curl_exec($ch); echo $result; curl_close($ch); ?>
×
×
  • Create New...