parent
f8cee8cc31
commit
9764bfc368
@ -323,23 +323,22 @@ of the letter's ASCII code.
|
||||
|
||||
Example:
|
||||
|
||||
(page located at `http://www.formpost.com/getthis/`)
|
||||
(say if `http://example.com` had the following html)
|
||||
|
||||
```html
|
||||
<form action="post.cgi" method="post">
|
||||
<input name=user size=10>
|
||||
<input name=pass type=password size=10>
|
||||
<input name=id type=hidden value="blablabla">
|
||||
<input name=ding value="submit">
|
||||
<input name=user size=10>
|
||||
<input name=pass type=password size=10>
|
||||
<input name=id type=hidden value="blablabla">
|
||||
<input name=ding value="submit">
|
||||
</form>
|
||||
```
|
||||
|
||||
We want to enter user `foobar` with password `12345`.
|
||||
|
||||
To post to this, you enter a curl command line like:
|
||||
To post to this, you would enter a curl command line like:
|
||||
|
||||
curl -d "user=foobar&pass=12345&id=blablabla&ding=submit"
|
||||
http://www.formpost.com/getthis/post.cgi
|
||||
curl -d "user=foobar&pass=12345&id=blablabla&ding=submit" http://example.com/post.cgi
|
||||
|
||||
While `-d` uses the application/x-www-form-urlencoded mime-type, generally
|
||||
understood by CGI's and similar, curl also supports the more capable
|
||||
|
||||
Loading…
Reference in New Issue
Block a user