Internet (internet)

Making requests to the Internet (http)

GET data from a URL (get)

GET data from a URL. For this example we are simply calling http://httpbin.org/get.

 

{ }
[{"paths":[],"data":{"internet":"internet","call":"internet.http.get","internet.http.get":"get","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"url":"http:\/\/httpbin.org\/get","query":null,"headers":null},"height":32,"width":120,"step":"Get URL","data_to_var":"resp","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"resp":{"body":{"origin":"12.155.182.202","headers":{"X-Request-Id":"9a8b91b7-1434-4d8b-b881-c68f35aa9382","Via":"1.1 vegur","Host":"httpbin.org","User-Agent":"python\/gevent-http-client-1.0a","Total-Route-Time":"0","Connection":"close","Connect-Time":"0"},"args":{},"url":"http:\/\/httpbin.org\/get"},"headers":{"content-length":"353","via":"1.1 vegur","server":"gunicorn\/18.0","connection":"keep-alive","access-control-allow-credentials":"true","date":"Fri, 14 Nov 2014 17:07:27 GMT","access-control-allow-origin":"*","content-type":"application\/json"},"status":200}}

PUT or update data to a URL (put)

PUT (or update) data to a URL. For this example we'll PUT 'hello' = 'world to http://httpbin.org/put?qsvar=qsval.

 

{ }
[{"paths":[],"data":{"internet":"internet","call":"internet.http.put","internet.http.put":"put","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"url":"http:\/\/httpbin.org\/put","query":{"qsvar":"qsval"},"body":{"hello":"world"},"headers":{"graphheader":"hi"}},"height":32,"width":120,"step":"PUT data to URL","data_to_var":"resp","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"resp":{"body":{"files":{},"origin":"12.155.182.202","form":{},"url":"http:\/\/httpbin.org\/put?qsvar=qsval","args":{"qsvar":"qsval"},"headers":{"Graphheader":"hi","Content-Length":"11","Via":"1.1 vegur","Connection":"close","X-Request-Id":"ad6d0ae0-f446-47cf-a38e-46b16f0c9842","User-Agent":"python\/gevent-http-client-1.0a","Total-Route-Time":"0","Host":"httpbin.org","Connect-Time":"5"},"json":null,"data":"hello=world"},"headers":{"content-length":"518","via":"1.1 vegur","server":"gunicorn\/18.0","connection":"keep-alive","access-control-allow-credentials":"true","date":"Fri, 14 Nov 2014 17:16:14 GMT","access-control-allow-origin":"*","content-type":"application\/json"},"status":200}}

POST or add data to a URL (post)

POST (or add) data to a URL. For this example we'll PUT 'hello' = 'world to http://httpbin.org/post?qsvar=qsval.

 

{ }
[{"paths":[],"data":{"internet":"internet","call":"internet.http.post","internet.http.post":"post","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"url":"http:\/\/httpbin.org\/post","query":{"qsvar":"qsval"},"body":{"hello":"world"},"headers":{"graphheader":"hi"}},"height":32,"width":120,"step":"POST data to URL","data_to_var":"resp","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"resp":{"body":{"files":{},"origin":"12.155.182.202","form":{},"url":"http:\/\/httpbin.org\/post?qsvar=qsval","args":{"qsvar":"qsval"},"headers":{"Graphheader":"hi","Content-Length":"11","Via":"1.1 vegur","Connection":"close","X-Request-Id":"c5e87b0e-129b-4545-8a0b-4c598ca18a3b","User-Agent":"python\/gevent-http-client-1.0a","Total-Route-Time":"0","Host":"httpbin.org","Connect-Time":"0"},"json":null,"data":"hello=world"},"headers":{"content-length":"519","via":"1.1 vegur","server":"gunicorn\/18.0","connection":"keep-alive","access-control-allow-credentials":"true","date":"Fri, 14 Nov 2014 17:22:40 GMT","access-control-allow-origin":"*","content-type":"application\/json"},"status":200}}

DELETE data at a URL (delete)

DELETE data at a URL. For this example we'll DELETE 'hello' = 'world at http://httpbin.org/put?qsvar=qsval.

 

{ }
[{"paths":[],"data":{"internet":"internet","call":"internet.http.delete","internet.http.delete":"delete","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"url":"http:\/\/httpbin.org\/delete","query":{"qsvar":"qsval"},"body":{"hello":"world"},"headers":{"graphheader":"hi"}},"height":32,"width":120,"step":"DELETE data at URL","data_to_var":"resp","y":0,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"resp":{"body":{"files":{},"origin":"12.155.182.202","form":{},"url":"http:\/\/httpbin.org\/delete?qsvar=qsval","args":{"qsvar":"qsval"},"headers":{"Graphheader":"hi","Content-Length":"11","Via":"1.1 vegur","Connection":"close","X-Request-Id":"467e5c0f-81ed-485f-b51a-740b082ec5be","User-Agent":"python\/gevent-http-client-1.0a","Total-Route-Time":"0","Host":"httpbin.org","Connect-Time":"1"},"json":null,"data":"hello=world"},"headers":{"content-length":"521","via":"1.1 vegur","server":"gunicorn\/18.0","connection":"keep-alive","access-control-allow-credentials":"true","date":"Fri, 14 Nov 2014 17:24:26 GMT","access-control-allow-origin":"*","content-type":"application\/json"},"status":200}}