开发者

Prevent redirection to root url

i am trying to access a webpage. I manage to get the redirect webpage session id as shown: http://www.sbstransit.com.sg/mobileiris/(tqkjtlnqkh2lw5v4rz4yurzf)/mobresult_svclist.aspx?stopcode=16101

I added mobresult_svclist.aspx?stopcode=16101 after the session id to retrieve the information.

However, i could not access the page and keep been redirected to the root url: http://www.sbstransit.com.sg/mobileiris/(tqkjtlnqkh2lw5v4rz4yurzf)/index_nextbus.aspx?__redir=1.

开发者_运维知识库

Do anyone know how to prevent that redirection to the root url using php or any other codes? Thanks.


You cannot. If the server sends a redirect header, you can of course choose not to follow it, but the page body would still be empty if the server side doesn't generate it.


You would like to have access to data the webmaster doesn't want you to have. Just contact the webmaster and ask for it to achieve this in a proper way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜