Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HTTP Requests and API's

HTTP Requests and API's

An introduction to HTTP requests and API's given at an event hosted by the Rutgers Undergraduate Student Alliance of Computer Scientists.

Eddie Zaneski

March 03, 2014
Tweet

More Decks by Eddie Zaneski

Other Decks in Technology

Transcript

  1. ~ curl -X GET -v ipinfo.io * About to connect()

    to ipinfo.io port 80 (#0) * Trying 23.239.16.243... * Connected to ipinfo.io (23.239.16.243) port 80 (#0) > GET / HTTP/1.1! > User-Agent: curl/7.30.0! > Host: ipinfo.io! > Accept: */*! >! Request
  2. < HTTP/1.1 200 OK < Server: nginx/1.1.19 < Date: Mon,

    03 Mar 2014 21:20:04 GMT < Content-Type: application/json; charset=utf-8 < Content-Length: 222 < Connection: keep-alive < X-Powered-By: Express < ETag: "-1011676620" < Response
  3. { "ip": "128.6.168.245", "hostname": "lawn-gw.rutgers.edu", "city": "Highland Park", "region": "New

    Jersey", "country": "US", "loc": "40.5032,-74.4289", "org": "AS46 Rutgers University", "postal": "08904" } Data