[macruby-changes] [4031] ControlTower/branches/gcd-ify/HACKING.rdoc

source_changes at macosforge.org source_changes at macosforge.org
Thu May 6 02:35:58 PDT 2010


Revision: 4031
          http://trac.macosforge.org/projects/ruby/changeset/4031
Author:   joshua.ballanco at apple.com
Date:     2010-05-06 02:35:57 -0700 (Thu, 06 May 2010)
Log Message:
-----------
Added 'file' info for upload sample

Modified Paths:
--------------
    ControlTower/branches/gcd-ify/HACKING.rdoc

Modified: ControlTower/branches/gcd-ify/HACKING.rdoc
===================================================================
--- ControlTower/branches/gcd-ify/HACKING.rdoc	2010-05-06 09:30:59 UTC (rev 4030)
+++ ControlTower/branches/gcd-ify/HACKING.rdoc	2010-05-06 09:35:57 UTC (rev 4031)
@@ -42,11 +42,12 @@
 '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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100506/19dc6f0a/attachment-0001.html>


More information about the macruby-changes mailing list