Cainiao asked me a question. I want to submit a URL to pass parameters and execute automatic sign-in by using the php sign-in source code. what should I do? Thank you !!

Source: Internet
Author: User
Cainiao asked me a question. I want to submit a URL to pass parameters and execute automatic sign-in by using the php sign-in source code. what should I do? Thank you !! This post was last edited by tangdeli98 at 14:08:46

I only use desktop software, and php has never used it. this is also the code of other people. if I want to transfer parameters and execute the sign-in action by submitting a URL, how can I get it? I want to use this URL to mount it to a cron network task, so that I can automatically sign in.

This is the test address that my code has passed to space: http://checkuxin.duapp.com/index.php
I constructed the URL address in the following format. after submission, the table will be automatically filled in but the sign-in will not be executed automatically (equivalent to manually clicking the "sign-in" button, in this case, the cron network task cannot be signed)
"Http://checkuxin.duapp.com/index.php? Id = my account & pw = my password & vi = sign in"

After reading the code, it seems that post is used. isn't it possible to make a simple URL? Is it necessary to get it? I tried to directly change the post in the source code to get, and the result code will report an error.

How can we get through such a URL (http://checkuxin.duapp.com/index.php? Id = my account & pw = my password & vi = sign-in) will sign in?

Or is there any way I put the account (I have two accounts, need all built-in) all built-in to the source code, and then directly access the http://checkuxin.duapp.com/index.php will all automatically sign in?

I don't know how to use php. could you help me? the more specific the better? thank you !! The index. php code is as follows:
          
         
 Sign in                
 ";} Else {echo" logon failed
";}$ Url =" http://im.uxin.com: 8887/signin? Sn = ". $ rang. "& sign = ". md5 ($ rang. "k1oET & Yh7 @ EQnp2XdTP1o/Vo ="); $ content = json_decode (httpreq ($ url), true); echo $ content ['content'] ;}?>
Time:
Homepage
Copyrightvi1.c. All Rights Reserved


Reply to discussion (solution)

$ Id = $ _ POST ["id"];
$ Pw = $ _ POST ["pw"];
? Is the post method used ?? Take ??

$ Id = $ _ REQUEST ['id'];
??? It can be the same ?? Post and get methods? Take ?? Now.

$ Id = $ _ POST ["id"];
$ Pw = $ _ POST ["pw"];
? Is the post method used ?? Take ??

$ Id = $ _ REQUEST ['id'];
??? It can be the same ?? Post and get methods? Take ?? Now, I only need to modify the two headers? Do I need to change it elsewhere? Thank you !!

??? It can be the same ?? Post and get methods? Take ?? I just tested it, but it still doesn't work. I still will fill out the form and won't execute the sign-in. thank you!

Maybe you want to study the curl of php and use the curl model? Submit.

Maybe you want to study the curl of php and use the curl model? You can submit the file. php is not supported. could you please help me? is it possible to add a sentence to the source code? Line 1 should be a sign-in (first login). What should I add after this sentence? Thank you !!

Me ?? Modified it. are you ?? Lower

         
         
 Sign in                
 ";} Else {echo" logon failed
";}$ Url =" http://im.uxin.com: 8887/signin? Sn = ". $ rang. "& sign = ". md5 ($ rang. "k1oET & Yh7 @ EQnp2XdTP1o/Vo ="); $ content = json_decode (httpreq ($ url), true); // echo $ content ['content']; echo'
',var_dump($content),'
'; Die () ;}?>
Time:
Homepage
Copyrightvi1.c. All Rights Reserved

Thank you !! The test still does not work. after the url is submitted, only the form is filled:

Me ?? Modified it. are you ?? Sorry, I got it wrong. I didn't get the correct parameter at last. now, thank you !! Thank you !!

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.