Results 1 to 1 of 1
- 09-24-2010, 11:03 AM #1Member
- Join Date
- Sep 2010
- Rep Power
POST over URLConnection resulting in 301 Moved Permanently
I'm trying to POST to a login form over URLConnection, then get two cookies I need to browse the website after a successful login. The actual POST data is accepted and the server logs me in, however the response instead of html containing cookies is "301 Moved Permanently". I suppose this is a redirect?
How do I follow the redirect, and how do I get the cookies?
- By efozdel in forum New To JavaReplies: 18Last Post: 07-10-2010, 11:30 PM
- By ethann_91 in forum New To JavaReplies: 1Last Post: 01-20-2010, 08:03 AM
- By afisher300 in forum New To JavaReplies: 3Last Post: 05-04-2009, 03:15 AM
- By shaungoater in forum New To JavaReplies: 2Last Post: 03-10-2008, 04:18 PM