[英]get PHP redirect url
我正在开发一个需要重定向后获取最终URL的应用程序。 在发布此问题之前,我尝试了其他解决方案,但没有任何效果。
要查询的初始URL是Base URL 。 它使用JS重定向并重定向到重定向URL
有没有一种方法可以从初始URL获得最终重定向的URL?
将curl_getinfo()与opt参数CURLINFO_EFFECTIVE_URL
curl_getinfo()
CURLINFO_EFFECTIVE_URL
从上面的链接页面:
CURLINFO_EFFECTIVE_URL - Last effective URL
这是一个JS重定向。 如果查看第一页的JS代码,您将看到它如何生成下一个URL。 您可以尝试实现相同的URL生成并获取最终URL。
[英]PHP get redirect URL
[英]PHP Get to URL redirect
[英]PHP: redirect after get url
[英]PHP get final redirect url
[英]PHP URL Redirect (Getting full URL + GET)
[英]php get url of redirect from source url
[英]get content of url ignoring redirect with php curl
[英]get 302 redirect url using php
[英]PHP Redirect / Get URL and Query String
[英]PHP get previous page url after redirect
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.