I have this URL to which I'm trying to redirected the page: http://www.hotukdeals.com/visit?m=1650&q=1542029
I already tried:
$ch1 = curl_init("http://www.hotukdeals.com/visit?m=1650&q=1542029");
curl_setopt($ch1, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch1, CURLOPT_NOBODY, TRUE);
curl_exec($ch1);
$curl_url = curl_getinfo($ch1, CURLINFO_EFFECTIVE_URL);
echo $curl_url;
I'm getting this response, which is the same URL:
How can I get this to work?
Thank you.
在大多数情况下,这应该可行,除非使用Javascript进行重定向。
print_r(get_headers('http://www.hotukdeals.com/visit?m=1650&q=1542029'));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.