Skip to content

Instantly share code, notes, and snippets.

@feedhenry-gists
Created June 8, 2011 20:08
Show Gist options
  • Save feedhenry-gists/1015275 to your computer and use it in GitHub Desktop.
Save feedhenry-gists/1015275 to your computer and use it in GitHub Desktop.
Web Requests JSON Object
{
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