| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
cURL form submition
From: Karolis Linkevicius <karolis.linkevicius_at_gmail.com>
Date: Thu, 8 Jul 2010 14:08:19 +0300
Hi, I have I problem submitting a form. The page code is this:
<html>
<head>
<title>
S4ID IS
</title>
<meta http-equiv=Content-Type content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css"
</head>
<body>
<form action="http://www.s4idis.lt/index.php/login/validate"
<div id="loginWin">
<h1>S4ID IS</h1>
<h5>Vartotojo vardas</h5>
<input type="text" name="username" value="xxxx" size="50" />
<h5>Slaptažodis</h5>
<input type="password" name="password" value="xxxx" size="50" />
<div id="butt"><input type="submit" name="press" value="Tvirtinti"
</div>
</form>
</body>
</html>
The curl command that have used: curl -d
After this command I get only the upper html code and I’m not being
When using web browser and submitting that form I see that there are two
POST:
Response Headersview source
Date
Thu, 08 Jul 2010 11:01:57 GMT
Server
Apache/2.2.3 (CentOS)
X-Powered-By
PHP/5.2.13
Set-Cookie
ci_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22297060724a88f5
Location
http://www.s4idis.lt/index.php/mainc/menu
Content-Length
0
Connection
close
Content-Type
text/html
Request Headersview source
Host
www.s4idis.lt
User-Agent
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.6) Gecko/20100625
Accept
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language
en-gb,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
Referer
http://www.s4idis.lt/index.php/login/logout
GET:
Response Headersview source
Date
Thu, 08 Jul 2010 11:01:57 GMT
Server
Apache/2.2.3 (CentOS)
X-Powered-By
PHP/5.2.13
Connection
close
Transfer-Encoding
chunked
Content-Type
text/html
Request Headersview source
Host
www.s4idis.lt
User-Agent
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.6) Gecko/20100625
Accept
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language
en-gb,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
Referer
http://www.s4idis.lt/index.php/login/logout
Cookie
ci_session=a%3A6%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22297060724a88f5
I’ve also tried to add Referer and user Agent data, but get the same html
-------------------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info