Hi is it possible to get embedded session id from url using php?
From the root url, http://www.sbstransit.com.sg/mobileiris/, the website will generate a session id which is between the url and become something like that.
i.e http://www.sbstransit.com.sg/mobileiris/(ts2k1e55xaah50iwodsvjy35)/index.aspx.
Isit possible to use php/any other ways to retrieve “ts2k1e55xaah50iwodsvjy35” out by querying the root url without actually physically going into the url?
If you use wget to get that page, you’ll see:
Which indicates that it is doing a 302 redirect to the URL containing the ID.
You can write Perl (or other) code to find the redirected URL: