ntesla123 Posted April 6, 2011 Share Posted April 6, 2011 I want to make a curl login script to a website where I have an account. When I try to use httpheaders to find out which variables are posted when I log in, I can't see any post statement. How do I log in to sites like that? Link to comment https://forums.phpfreaks.com/topic/232911-login-without-post-statement/ Share on other sites More sharing options...
Maq Posted April 6, 2011 Share Posted April 6, 2011 I want to make a curl login script to a website where I have an account. When I try to use httpheaders to find out which variables are posted when I log in, I can't see any post statement. How do I log in to sites like that? Do you have any code we can see? Link to comment https://forums.phpfreaks.com/topic/232911-login-without-post-statement/#findComment-1197907 Share on other sites More sharing options...
ntesla123 Posted April 6, 2011 Author Share Posted April 6, 2011 I'm trying to log into a site like this one. http://www.celebritymoviearchive.com/members/ It uses a get statement with Authorization: Basic bmxwdGVjaDFAaG90bWFpbC5jb206eGVobW51NGU= This is the data that's sent: GET /members/ HTTP/1.1 Host: www.celebritymoviearchive.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.04 (lucid) Firefox/3.6.16 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Authorization: Basic bmxwdGVjaDFAaG90bWFpbC5jb206eGVobW51NGU= HTTP/1.1 200 OK Date: Wed, 06 Apr 2011 22:07:35 GMT Server: Apache/2.2 X-Powered-By: PHP/5.3.6 Content-Encoding: gzip Vary: Accept-Encoding Content-Length: 2608 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: text/html Link to comment https://forums.phpfreaks.com/topic/232911-login-without-post-statement/#findComment-1197926 Share on other sites More sharing options...
Maq Posted April 7, 2011 Share Posted April 7, 2011 Do you have any code we can see? Link to comment https://forums.phpfreaks.com/topic/232911-login-without-post-statement/#findComment-1198233 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.