发送POST请求html

时间:2018-09-28 00:16:36

标签: html post

我正在尝试从以下标头创建发布请求。

POST /Create_New_Account.php HTTP/1.0
Connection: keep-alive
Content-Type: multipart/form-data; boundary=--------092818025341241
Content-Length: 198
Host: test.com
Accept: text/html, */*
Accept-Encoding: identity
User-Agent: Mozilla/3.0 (compatible; Indy Library)

----------092818025341241
Content-Disposition: form-data; name="email"
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

test@yahoo.com
----------092818025341241--

我尝试使用http://test.com/Create_New_Account.php?email=test@yahoo.com 但它不起作用,即未创建任何帐户。我应该在请求中添加其他内容吗?

1 个答案:

答案 0 :(得分:0)

  

我尝试使用http://test.com/Create_New_Account.php?email=test@yahoo.com,但没有用

可能,Create_New_Account.php使用$_POST来获取参数email,并且给定链接email可以通过$_GET$_REQUEST而不是{ {1}},这就是整个创建帐户操作失败的原因。

相关问题