This notebook demonstrates the HTTP extension which introduces the %url
and %%request
commands.
In [1]:
%extension http
The %url
command allows constructing a URL request with query string, headers, or request data pulled from notebook variables.
In [2]:
%url --help
In [3]:
%url get https://www.google.com/images/srpr/logo11w.png --response=body
The %%request command allows specifying a full HTTP request verbatim within the cell.
In [4]:
%%request --help
In [5]:
%%request
GET http://ip.jsontest.com/
In [6]:
%%request
POST http://headers.jsontest.com/
Foo: Bar
Sample request body
In [ ]: