Need Help: "302 Skipped" while two stages login proccess

Started by vk007, September 17, 2016, 04:20:13 PM

Previous topic - Next topic

vk007

Quote from: Richard Moss on April 16, 2016, 08:15:59 PM
The second problem was the login process is actually two stages. Unlike most logins which perform the login on the POST, Basecamp requires a little more. In order to complete the login, you need to GET the URI returned from the POST's 302. As I didn't consider this, WebCopy always discarded the response and didn't do anything further with it, except to abort the copy if the response wasn't a 302

Fixing the second issue was easy enough, I now simply do a GET on the URI returned by the Location header after a successful post. Currently I'm completely ignoring the response, it's enough to get the data sent to the second URL to complete the login.


Hi, I am facing problem while trying to copy a website which have Html Form login. The form capture the login form fields correctly. Once login form post request sent to host it send back response with 302 code with 2nd (another) url to complete this two stage login process.

I followed the step you mentioned in above. I added a second form url (which returned on 1st form post response) with empty form data, But then also the WebCopy stop scanning that 2nd url and showing "302 Skipped" status in reports.

Please help on this, as I didnt understand how to set 2nd form url to get.

Regards,
        Vishal

Richard Moss

Vishal,

Welcome to the forums and thanks for your question! Unfortunately, this scenario isn't supported yet - while WebCopy can post multiple forms, it can't chain them together (ie use the response from the first post to construct the second post). I am aware of this issue but I haven't looked at it yet, as currently performing some much needed upgrades to CopyTools are my immediate focus.

Sadly this is yet another issue where WebCopy just isn't going to do what a user needs - I apologise for this, hopefully I'll get this working sooner rather than later.

Regards;
Richard Moss
Read "Before You Post" before posting (https://forums.cyotek.com/cyotek-webcopy/before-you-post/). Do not send me private messages. Do not expect instant replies.

All responses are hand crafted. No AI involved. Possibly no I either.