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

curl-and-php

Re: another "post with curl" question

From: Yiğit Güneli <gro.tiiy_at_yiit.org>
Date: Thu, 30 Aug 2007 23:55:07 +0300

i expect the original file to receive the variables i send and process them.
but when i send submit, it refreshes the current page.
here are my prints:

$ curl -v -d
"user_login=username&user_pass=ahmet&rememberme=forever&login-form=Login"
http://www.****.com/wp-login.php
* About to connect() to www.****.com port 80
* Trying 208.113.180.252... * connected
* Connected to www.****.com (208.113.180.252) port 80
> POST /wp-login.php HTTP/1.1
User-Agent: curl/7.13.2 (i386-pc-linux-gnu) libcurl/7.13.2 OpenSSL/0.9.7e
zlib/1.2.2 libidn/0.5.13
Host: www.****.com
Pragma: no-cache
Accept: */*
Content-Length: 71
Content-Type: application/x-www-form-urlencoded

user_login=username&user_pass=ahmet&rememberme=forever&login-form=Login<
HTTP/1.1 200 OK
< Date: Thu, 30 Aug 2007 20:48:45 GMT
< Server: Apache/2.0.54 (Unix) PHP/4.4.7 mod_ssl/2.0.54 OpenSSL/0.9.7e
mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2
< X-Powered-By: PHP/5.2.3
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
< Content-Type: text/html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
.....

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-08-30