http://www.chong4.com.cn/cydb/go.php?7218_29882_22t
how he jumps ~ ~
How to get the URL after this URL jump via PHP
Reply to discussion (solution)
If you do not jump within the code, it is estimated that the socket will be used to catch the header
Curl seems to have access to the header, you check
The estimate is based on the following variables to achieve the jump
Fsockopen way to get this page, analysis inside the location after get jump address.
$headers = get_headers (' http://www.chong4.com.cn/cydb/go.php?7218_29882_22t ', true); if (Is_array ($headers [' "Location") { $headers [' location '] = Array_pop ($headers [' location ']);} $script = file_get_contents ($headers [' location ']); Echo $script;
Its final jump like JS to do, the simple way is you find out its law, extract its URL content
Jump through 302 to ' http://s.click.taobao.com/t_js?tu=http%3A%2F%2Fs.click.taobao.com%2Ft%3Fe%3DzGU34CA7K%252BPkqB07S4% 252fk0cfcrfh0g7dbpkin9mmh7ekq%252b3knwlm5fprbcf5ekenj3ts8ijj4% 252f77ox8o2iw1qeuhehgaut73j9hj3yptnym616dyrkk0ae1e31wn8tefmpcriy9ej5o4jcwirap3rj1hfnxi2hsqhk8lk01raylx5% 252f9fhp6i%252fprgyageegvo%252f%26spm%3d2014.12231445.1.0%26u%3d22t7218%26ref%3d%26et%3djfbb1tzvzvjt5a%253d% 253D
Can get a section of JS code
which has QS = Location.search.split ("?") [Location.search.split ("?"). Length-1].split ("&");
So you need to replace Location.search with the above URL
After executing the JS code, we get
Frameborder=0> frameborder=0>
You can keep track of the code in those JS files.
This post was last edited by xuzuning on 2013-01-17 13:01:04
Jump through 302 to ' http://s.click.taobao.com/t_js?tu=http%3A%2F%2Fs.click.taobao.com%2Ft%3Fe%3DzGU34CA7K%252BPkqB07S4% 252fk0cfcrfh0g7dbpki ...
http://s.click.taobao.com/t_js?tu=http%3A%2F%2Fs.click.taobao.com%2Ft%3Fe%3DzGU34CA7K%252BPkqB07S4% 252fk0cfcrfh0g7dbpkin9mmh7ekq%252b3knwlm5fprbcf5ekenj3ts8ijj4% 252f77ox8o2iw1qeuhehgaut73j9hj3yptnym616dyrkk0ae1e31wn8tefmpcriy9ej5o4jcwirap3rj1hfnxi2hsqhk8lk01raylx5% 252f9fhp6i%252fprgyageegvo%252f%26spm%3d2014.12231445.1.0%26u%3d22t7218%26ref%3d%26et%3djfbb1tzvzvjt5a%253d% 253D
What is needed is this paragraph, how to get it?
$url = ' http://www.chong4.com.cn/cydb/go.php?7218_29882_22t '; $ch = Curl_init (); curl_setopt ($ch, Curlopt_url, $url); curl_setopt ($ch, Curlopt_header, True); curl_setopt ($ch, Curlopt_returntransfer, True); curl_setopt ($ch, Curlopt_ Followlocation, true); $content = Curl_exec ($ch); Echo $content;
Get
http/1.1 301 Moved Permanently
server:nginx/1.0.15
Date:thu, 06:48:10 GMT
Content-type:text/html
Connection:keep-alive
x-powered-by:php/5.2.17
Expires:mon, Jul 1997 05:00:00 GMT
Last-modified:thu, 06:48:10 GMT
Cache-control:no-store, No-cache, must-revalidate
Pragma:no-cache
location:http://s.click.taobao.com/t?e=zgu34ca7k%2bpkqb07s4%2fk0cfcrfh0g7dbpkin9mmh7ekq% 2b3knwlm5fprbcf5ekenj3ts8ijj4% 2f77ox8o2iw1qeuhehgaut73j9hj3yptnym616dyrkk0ae1e31wn8tefmpcriy9ej5o4jcwirap3rj1hfnxi2hsqhk8lk01raylx5%2f9fhp6i %2fprgyageegvo%2f&spm=2014.12231445.1.0&u=22t7218
content-length:0
http/1.1 302 Moved temporarily
Server:tengine
Date:thu, 06:48:22 GMT
Content-type:text/html
Transfer-encoding:chunked
Connection:close
location:http://s.click.taobao.com/t_js?tu=http%3a%2f%2fs.click.taobao.com%2ft%3fe%3dzgu34ca7k%252bpkqb07s4% 252fk0cfcrfh0g7dbpkin9mmh7ekq%252b3knwlm5fprbcf5ekenj3ts8ijj4% 252f77ox8o2iw1qeuhehgaut73j9hj3yptnym616dyrkk0ae1e31wn8tefmpcriy9ej5o4jcwirap3rj1hfnxi2hsqhk8lk01raylx5% 252f9fhp6i%252fprgyageegvo%252f%26spm%3d2014.12231445.1.0%26u%3d22t7218%26ref%3d%26et%3djfbb1ttojf2gra%253d% 253D
Expires:thu, 06:48:22 GMT
Cache-control:max-age=0
http/1.1 OK
Server:tengine
Date:thu, 06:48:22 GMT
content-type:text/html; Charset=gbk
content-length:2267
Last-modified:tue, 01:49:17 GMT
Connection:close
Vary:accept-encoding
Expires:thu, 06:48:22 GMT
Cache-control:max-age=0
Accept-ranges:bytes