Results 1 to 1 of 1
- 09-24-2010, 12:03 PM #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-11-2010, 12:30 AM
- By ethann_91 in forum New To JavaReplies: 1Last Post: 01-20-2010, 09:03 AM
- By afisher300 in forum New To JavaReplies: 3Last Post: 05-04-2009, 04:15 AM
- By shaungoater in forum New To JavaReplies: 2Last Post: 03-10-2008, 05:18 PM