Created
June 8, 2011 20:08
-
-
Save feedhenry-gists/1015275 to your computer and use it in GitHub Desktop.
Web Requests JSON Object
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
{ | |
status: 200|404|1001|1002|1003|1004, | |
errors: [ | |
{}//Only present if status != 200 | |
], | |
body: '<The response from the remote site>', | |
contentType:'<The content type of the response>', | |
charset:'<The character set encoding of the response', | |
cookies:[ | |
{ | |
domain:'<Domain value e.g. example.com>', | |
name:'<Cookie name e.g. foo>', | |
value:'<Cookie value e.g. bar>' | |
} | |
], | |
headers:[ | |
{ | |
name:'<Header name e.g. foo>', | |
value:'<Header value e.g. bar>' | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment