Master, about curl simulated login

Source: Internet
Author: User
Master, about curl simulated login this post was last edited by dz215136304 at 10:25:43

Simulate login to Zhimeng. version 5.7 has removed the background verification code. I don't know why I can't log on to the machine all the time. (the system prompts that the login is successful but jumps back to the login address)


 


Reply to discussion (solution)

Nobody can wait for a master

Wait for the experts. no one will.

Change the 12 lines of the code to echo curl_exec ($ ch). What do you just see?

Change the 12 lines of the code to echo curl_exec ($ ch). What do you just see?
If the logon is successful, the system jumps to the background homepage and then to the logon page.

Change the 12 lines of the code to echo curl_exec ($ ch). What do you just see?
It seems that the cookie cannot be obtained from 16 rows, but the cookie has already been generated (ps: Just a guess)

Then you curl_setopt ($ ch, CURLOPT_HEADER, 1 );
Verify

Then you curl_setopt ($ ch, CURLOPT_HEADER, 1 );
Verify

1HTTP/1.1 302 Found Date: Thu, 04 Apr 2013 12:23:50 GMT Server: Apache/2.2.21 (Win32) PHP/5.3.10 X-Powered-By: PHP/5.3.10 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: private Pragma: no-cache location: login.php?gotopage=%2Fdedecms%2Fdede%2Farticle_add.php%3Fchannelid%3D1 Content-Length: 0 Content-Type: text/html; charset=gb2312



Modified 18th rows

Isn't he going to jump here?
Login. php? Gotopage = % 2 Fdedecms % 2 Fdede % 2Farticle_add.php % 3 Fchannelid % 3D1

Isn't he going to jump here?
Login. php? Gotopage = % 2 Fdedecms % 2 Fdede % 2Farticle_add.php % 3 Fchannelid % 3D1
No. to jump to http: // localhost/dedecms/dede/article_add.php? Channelid = 1

Isn't he going to jump here?
Login. php? Gotopage = % 2 Fdedecms % 2 Fdede % 2Farticle_add.php % 3 Fchannelid % 3D1

I need to jump to http: // localhost/dedecms/dede/article_add.php? Channelid = 1 and he jumps to the login page by mistake (http: // localhost/dedecms/dede/login. php? Gotopage = % 2 Fdedecms % 2 Fdede % 2Findex. php)

Isn't he going to jump here?
Login. php? Gotopage = % 2 Fdedecms % 2 Fdede % 2Farticle_add.php % 3 Fchannelid % 3D1

Need to get http: // localhost/dedecms/dede/article_add.php? Channelid = 1 data on this page

Dede verification

Dede verification code removed

Wait for answers

Wait for answers

I am using soy sauce.

Haha, I have too few available points. I want to score points in the reply.

The cookie does not take effect, or the cookie domain is incorrect.

If you go back to the home page after logging in, it will be a cookie problem...

If you go back to the home page after logging in, it will be a cookie problem...
It seems to be a cookie, but the cookie has already been saved in the file. isn't the cookie sent by Line 1 of code? Solution

Haha, I have too few available points. I want to score points in the reply.

Haha, I have too few available points. I want to score points in the reply. I tried soy sauce.

Continue seeking experts continue seeking Masters

Continue to wait, today

Continue to wait, today

Header ("location: login. php? Gotopage = ". urlencode ($ dedeNowurl ));

Use this function to try it. I can use it to query car violations ~~~

 

You cannot use localhost.

I am; come to learn...

Restrictions on the dede login class

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.