Actually, I don't need to specify the page so explicitly; I should just make a request, say for Google.com, follow redirects and check the result. If the result is Google -- Good! If it's T-Mobile login page, then post the login based on the URL and the form action. But, I didn't do it that way. Sorry.