Right. I still have to add that. The slightly annoying part is that the `newLocation` is the full URL.

For example, if you send an API request to `https://api.stackmob.com/myobject/DFD3A6C16AC5DEF228`, the response `location` header (thus, newLocation) will be something like `https://anotherapi.stackmob.com/myobject/DFD3A6C16AC5DEF228`. So I'll have to parse out the domain and set that as the new apiDomain.  

One thing I'm wondering is how to handle security modes. If you request HTTP, but then the 302 redirects you to HTTPS, the redirected request will be HTTPS. But what about subsequent requests?