עבר עריכה לאחרונה בתאריך 13.12.16 בשעה 16:57 על-ידי Ice Cold (מנהל הפורום)
HTTP/1.1 200 OK Date: Mon, 12 Dec 2016 17:40:15 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Set-Cookie: __cfduid=df0df76f468e689b6a042d79860edc5511481564414; expires=Tue, 12-Dec-17 17:40:14 GMT; path=/; domain=.dx.com; HttpOnly Vary: Accept-Encoding Cache-Control: private Set-Cookie: ASP.NET_SessionId=csr4tmuoocsxlmsby40rmsyw; domain=.dx.com; expires=Tue, 27-Dec-2016 17:40:15 GMT; path=/; HttpOnly X-AspNetMvc-Version: 4.0 X-AspNet-Version: 4.0.30319 Set-Cookie: ASP.NET_SessionId=csr4tmuoocsxlmsby40rmsyw; domain=.dx.com; expires=Tue, 27-Dec-2016 17:40:15 GMT; path=/; HttpOnly Set-Cookie: DXGlobalization=lang=en&locale=en-US¤cy=EUR; domain=.dx.com; expires=Tue, 27-Dec-2016 17:40:15 GMT; path=/ Set-Cookie: DXGlobalization_lang=en; domain=.dx.com; expires=Tue, 27-Dec-2016 17:40:15 GMT; path=/ Set-Cookie: DXGlobalization_locale=en-US; domain=.dx.com; expires=Tue, 27-Dec-2016 17:40:15 GMT; path=/ Set-Cookie: DXGlobalization_currency=EUR; domain=.dx.com; expires=Tue, 27-Dec-2016 17:40:15 GMT; path=/ Set-Cookie: sessionCookie=8fd73e4c-56f3-45aa-a70a-f6aeb0f3d983; domain=.dx.com; path=/ X-Powered-By: ASP.NET Server: cloudflare-nginx CF-RAY: 3102f5d784d4149d-AMSוזו הפקודה שאני מנסה להריץ,
function download_page($url) { $header = array(); $header[] = "Set-Cookie: DXGlobalization_currency=ILS;"; $curl = curl_init(); // Make the request curl_setopt($curl, CURLOPT_URL, $url ); curl_setopt($curl, CURLOPT_POST, false); curl_setopt($curl, CURLOPT_HEADER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, $header); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"); curl_setopt($curl, CURLOPT_COOKIEFILE, $cookies); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curl); curl_close($curl); $html = new simple_html_dom(); return $html->load($response); }
|
זה לא עובד, וה- "EURO" לא משתנה.
אשמח לעזרה בבקשה.
@Bonito@