cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Me again

From: Tig <tig_at_online.be>
Date: Wed, 18 Aug 2004 11:22:31 +0200

Hi,

I installed mozilla & liveheaders like you said and took a look at the site
info. I do not know what exaclty to do with the data, but I think I am sending
all the correct data to the form using Curl.

When running curl from the commandline I seem to get "302 Found" everytime I
run the script. On the internet they seem to say it is due to redirect, but
using switch -L or -I doesn't seem to get rid of that problem.

Below is what i type and the reaction I get:

tig_at_gecko:~$ curl -v -A "Mozilla/4.0" -d
"username=&pword=apssword&uname=tiggy-dragonz&uemail=tig_at_online.be&submit=Login"
www.kingsofchaos.com/login.php

* About to connect() to www.kingsofchaos.com:80
* Connected to kingsofchaos.com (66.230.172.169) port 80
> POST /login.php HTTP/1.1
User-Agent: Mozilla/4.0
Host: www.kingsofchaos.com
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 70
Content-Type: application/x-www-form-urlencoded

username=&pword=apassword&uname=tiggy-dragonz&uemail=tig_at_online.be&submit=Login<
HTTP/1.1 302 Found
< Date: Wed, 18 Aug 2004 09:08:34 GMT
< Server: Apache/1.3.29 (Unix) (Gentoo/Linux)
< Set-Cookie: koc_session=ab441508f335b42ea8cd77719b0b8285; path=/;
domain=www.kingsofchaos.com
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
< Pragma: no-cache
< Set-Cookie: security_hash=323466345345; expires=Fri, 17-Sep-2004 09:08:34
GMT; path=/; domain=.kingsofchaos.com
< Set-Cookie: cookie_hash=5b9d2062d63d2b57b49c6b4aaa61cdc0; path=/
< Location: login.php
< Connection: close
< Transfer-Encoding: chunked
< Content-Type: text/html
* Closing connection #0

Any idea what I am doing wrong?

I don't want to be annoying, but I can't seem to find information on the net
(i mean information I understand :) )

See ya

Thierry
Received on 2004-08-18