Skip to content

Commit

Permalink
Added 'file' info for upload sample
Browse files Browse the repository at this point in the history
  • Loading branch information
jballanc committed May 6, 2010
1 parent f56f0d7 commit acd5819
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions HACKING.rdoc
Expand Up @@ -42,11 +42,12 @@ environment generated by your request. To try a POST request, start the
'file_upload.ru' config as above, then use curl (or similar tool) to send a post
with some file content like so:

> curl -F "test=@README.rdoc" http://localhost:8080/
> curl -F "file=@README.rdoc" http://localhost:8080/

This command tells curl to send the file as a form parameter, and the reply
should contain the content of the rack 'params' variable constructed from this
parameter.
parameter. In particular, when the parameter is named 'file', the
'file_upload.ru' sample will return the contents of the file.


== Debugging
Expand Down

0 comments on commit acd5819

Please sign in to comment.