POST请求不起作用

时间:2013-09-19 21:44:41

标签: php http post httprequest fastcgi

我想为网站创建一个POST请求。为此,我使用FireFox的插件记录POST请求。我得到了这个输出:

https://XXXXXXXXXX/anmeldung.fcgi

POST /cgi/anmeldung.fcgi HTTP/1.1
Host: XXXXXXXXXX
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://YYYYYYYYYY/index.html
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 12
    name=cilenco

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Date: Thu, 19 Sep 2013 21:15:08 GMT
Server: lighttpd/1.4.31

现在,我想使用Google Simple REST Client重新创建POST请求。我将URL设置为第一行,将数据设置为name=cilenco,但它不起作用。我的回答错了。您有什么想法为什么或我是否必须使用上述更多信息?

响应应如下所示:

<html>
    <head>...</head>
    <body class="anmeldung">
        <from>...</form>
    </body>
</html>

1 个答案:

答案 0 :(得分:0)

我收到的回复看起来不错,也许你忘记了什么?

enter image description here