Use snoopy to simulate logon-logon failed-multi-domain jump

Source: Internet
Author: User
Use snoopy to simulate logon-logon failed-multi-domain jump code is as follows:
 Agent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36 SE 2.X MetaSr 1.0 "; $ snoopy-> referer = "http://agent.fang.com/"; $ snoopy-> rawheaders ["Pragma"] = "no-cache"; $ snoopy-> maxredirs = 2; // redirect times $ snoopy-> offsiteok = false; $ snoopy-> user = "esf-agen42249"; $ snoopy-> pass = "dlesf2010"; $ submit_url = "http://agent.fang.com/DealLoginAjax.aspx "; $ submit_vars ["str_username"] = "esf-agen42249"; $ submit_vars ["str_userpwd"] = "dlesf2010"; $ submit_vars ["str_imgCode"] = "Enter the verification code "; $ snoopy-> submit ($ submit_url, $ submit_vars); $ snoopy-> setcookies (); if ($ snoopy-> fetch ("http:// B .agent.fang.com/magent/HomePage.aspx ")) {print_r ($ snoopy-> headers); print_r ($ snoopy-> cookies); echo ("
 "); // Print_r ($ snoopy-> results); // The page that can only be viewed after logon cannot be obtained} elseecho" error :". $ snoopy-> error. "\ n";?>


Please give me some advice. it seems that the logon fails and the main interface after logon cannot be obtained.


Reply to discussion (solution)

Read the document if you don't know how to play it. Do you have to check the http request data first?

Log on normally. check HTTP data transmission:

Remote Address:111.40.195.21:80Request URL:http://agent.fang.com/DealLoginAjax.aspx?str_username=esf-agen42249&str_userpwd=571c041891354cc5b51725f0b37170f80efb4f27ba8c897e4ff67ebe17b4ce599f28ac5f7eceeb5ff2d9755c62a57db74f206d3c52ccb79b71c24e3858f29ac7d49dfb8d77192529ac387b4e9c6426ecf70f3003ce348dcd6bd4d1af84e9293164516745c654d2c9bc0089c80f02ba5f69aeaac1e142c8af8e000ac7b1a4a278&str_imgCode=%E8%AF%B7%E8%BE%93%E5%85%A5%E9%AA%8C%E8%AF%81%E7%A0%81Request Method:GETStatus Code:200 OK



str_username=esf-agen42249&str_userpwd=571c041891354cc5b51725f0b37170f80efb4f27ba8c897e4ff67ebe17b4ce599f28ac5f7eceeb5ff2d9755c62a57db74f206d3c52ccb79b71c24e3858f29ac7d49dfb8d77192529ac387b4e9c6426ecf70f3003ce348dcd6bd4d1af84e9293164516745c654d2c9bc0089c80f02ba5f69aeaac1e142c8af8e000ac7b1a4a278&str_imgCode=%E8%AF%B7%E8%BE%93%E5%85%A5%E9%AA%8C%E8%AF%81%E7%A0%81



Are you clear? GET login?

Read the document if you don't know how to play it. Do you have to check the http request data first?

Log on normally. check HTTP data transmission:

Remote Address:111.40.195.21:80Request URL:http://agent.fang.com/DealLoginAjax.aspx?str_username=esf-agen42249&str_userpwd=571c041891354cc5b51725f0b37170f80efb4f27ba8c897e4ff67ebe17b4ce599f28ac5f7eceeb5ff2d9755c62a57db74f206d3c52ccb79b71c24e3858f29ac7d49dfb8d77192529ac387b4e9c6426ecf70f3003ce348dcd6bd4d1af84e9293164516745c654d2c9bc0089c80f02ba5f69aeaac1e142c8af8e000ac7b1a4a278&str_imgCode=%E8%AF%B7%E8%BE%93%E5%85%A5%E9%AA%8C%E8%AF%81%E7%A0%81Request Method:GETStatus Code:200 OK



str_username=esf-agen42249&str_userpwd=571c041891354cc5b51725f0b37170f80efb4f27ba8c897e4ff67ebe17b4ce599f28ac5f7eceeb5ff2d9755c62a57db74f206d3c52ccb79b71c24e3858f29ac7d49dfb8d77192529ac387b4e9c6426ecf70f3003ce348dcd6bd4d1af84e9293164516745c654d2c9bc0089c80f02ba5f69aeaac1e142c8af8e000ac7b1a4a278&str_imgCode=%E8%AF%B7%E8%BE%93%E5%85%A5%E9%AA%8C%E8%AF%81%E7%A0%81



Are you clear? GET login?



We are very grateful to the queue (* 'authorization' *) for obtaining this information: Request URL: http: // agent .******

F12 review elements, network

F12 review elements, network



I jumped directly after login. how can I pause viewing?

Dizzy (= _ =) Why didn't I send out my posting scores? How to change it?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.