Jump to content

Recommended Posts

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?

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

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.