Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Side note.

  https://twitter.com/account/use_phx?setting=false&format=text
Recognised that URL immediately, and (after first changing to newtwitter which I hate), reloading the page did indeed switch me back to oldtwitter.

Edit: Because of the change in URLs between the old and new versions of Twitter, I can only find one alternative to the us_phx option (a fairly obvious one):

  http://twitter.com/settings/account
Returns 302 if not logged in, and if logged in then 200 regardless of if your account is set to use new or old twitter.


302 wont work. It simply redirects to the destination page, and then the onload would be triggered. What you need to find is something which generates an error code, ie 4xx/500. When logged in, this generates a 406, because I set "format" to something invalid:

https://twitter.com/account/use_phx?setting=false&format...

But when logged out, it redirects to the login form which ultimately provides a 200 status code.

There are probably several other ways of making twitter generate a HTTP error code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: