The web team recently announced a change to the way they're serving webpages on secondlife.com. One big change was the redirecting of HTTPS requests to secure-web*.secondlife.com, in order to deal with security certificates.
Unfortunately, this had a side-effect of breaking a script I wrote that automatically grabs transactions.xml in order to do some statistical work on the data. Before, I used to use wget to visit https://secondlife.com/login.php, with POST data that included my name and password in order to get a session cookie. Then I would grab the latest transactions in XML format.
Now, I seem to be getting redirected to a secure-web*.secondlife.com, and in the process, the POST data is dropped on the floor. The solution looks like it is for me to hardcode in one of the secure webserver addresses, so I'm posting to http://secure-web5.secondlife.com/login.php, or something similar. This seems like it'll work, but it makes me think of one big question:
Which server should I pick? Can I be sure that it'll stay up? Can you think of a convenient way for me to grab one dynamically? Fetching https://secondlife.com/login.php just to see which server I get redirected to sounds like a really annoying process to code.