Created
June 9, 2011 20:19
-
-
Save mbcharbonneau/1017628 to your computer and use it in GitHub Desktop.
This file contains 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
curl -i -H "Accept: text/javascript" \ | |
-F "postcard[recipients_attributes][0][email]=test@gmail.com" \ | |
-F "postcard[recipients_attributes][0][first_name]=first" \ | |
-F "postcard[recipients_attributes][0][last_name]=last" \ | |
-F "postcard[recipients_attributes][1][email]=test2@gmail.com" \ | |
-F "postcard[recipients_attributes][1][first_name]=first" \ | |
-F "postcard[recipients_attributes][1][last_name]=last" \ | |
-F "postcard[recipients_attributes][1][address_1]=No 1" \ | |
-F "postcard[recipients_attributes][1][city]=Singapore" \ | |
-F "postcard[recipients_attributes][1][country]=Singapore" \ | |
-F "postcard[recipients_attributes][1][zipcode]=12312" \ | |
-F "postcard[photos_attributes][0][kind]=front" \ | |
-F "postcard[photos_attributes][0][photo]=@/Users/mbcharbonneau/Desktop/front.jpg" \ | |
-F "postcard[photos_attributes][1][kind]=accent" \ | |
-F "postcard[photos_attributes][1][photo]=@/Users/mbcharbonneau/Desktop/accent.jpg" \ | |
-F "postcard[photos_attributes][2][kind]=message" \ | |
-F "postcard[photos_attributes][2][photo]=@/Users/mbcharbonneau/Desktop/msg.jpg" \ | |
http://pcotr-staging.heroku.com/postcards.json | |
HTTP/1.1 100 Continue | |
HTTP/1.1 500 Internal Server Error | |
Server: nginx/0.7.67 | |
Date: Thu, 09 Jun 2011 20:17:11 GMT | |
Content-Type: text/html | |
Connection: keep-alive | |
Content-Length: 728 | |
X-Runtime: 0.012383 | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>We're sorry, but something went wrong (500)</title> | |
<style type="text/css"> | |
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } | |
div.dialog { | |
width: 25em; | |
padding: 0 4em; | |
margin: 4em auto 0 auto; | |
border: 1px solid #ccc; | |
border-right-color: #999; | |
border-bottom-color: #999; | |
} | |
h1 { font-size: 100%; color: #f00; line-height: 1.5em; } | |
</style> | |
</head> | |
<body> | |
<!-- This file lives in public/500.html --> | |
<div class="dialog"> | |
<h1>We're sorry, but something went wrong.</h1> | |
<p>We've been notified about this issue and we'll take a look at it shortly.</p> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment