Created
July 7, 2012 14:51
-
-
Save kgrz/3066759 to your computer and use it in GitHub Desktop.
binary post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sinatra' | |
| post '/post' do | |
| response.body.inspect # This returns [] with the curl command given below | |
| end | |
| __END__ | |
| Curl command used is: | |
| curl --data-binary @"test.jpg" http://localhost:9393/post | |
| or | |
| curl --data-binary @test.jpg http://localhost:9393/post | |
| I'm using Shotgun via thin. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment