Skip to content

Instantly share code, notes, and snippets.

@feedhenry-gists
Created June 8, 2011 20:04
Show Gist options
  • Save feedhenry-gists/1015259 to your computer and use it in GitHub Desktop.
Save feedhenry-gists/1015259 to your computer and use it in GitHub Desktop.
Web Requests Call
$fh.web( {
url: 'http://www.example.com/service',
method: 'POST',
charset: 'UTF-8',
contentType: 'text/json',
body: 'request_body',
params: [
{name:'param_name', value:'param_value'}
]
headers: [
{name:'header_name', value:'header_value'}
],
cookies: [
{domain:'somedomain.com', name:'cookie_name', value:'cookie_value'}
],
period: 360000
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment