Submit Search
Upload
httpie
•
21 likes
•
20,518 views
Scott Leberknight
Follow
These are slides from a "mini-talk" (~15 minutes) I recently gave on httpie.
Read less
Read more
Technology
Design
Slideshow view
Report
Share
Slideshow view
Report
Share
1 of 47
Download now
Download to read offline
Recommended
SCADA
SCADA
Amit Kumar Shrivastava
Makalah Counter Sinkron dan Counter Asinkron
Makalah Counter Sinkron dan Counter Asinkron
risky arya
Sistemas de Telecomunicações - Aula 14 - Redes ATM, Ethernet, Token Ring e Re...
Sistemas de Telecomunicações - Aula 14 - Redes ATM, Ethernet, Token Ring e Re...
Leinylson Fontinele
Habitações inteligentes
Habitações inteligentes
Patrícia Boal
Automatic temperature control
Automatic temperature control
RANJAN KUMAR
Bài 5 PHẦN MỀM HỆ THỐNG
Bài 5 PHẦN MỀM HỆ THỐNG
MasterCode.vn
Automation PLC & SCADA
Automation PLC & SCADA
NITISH SINGH
04 instalasi mikropon
04 instalasi mikropon
agus saefudin
Recommended
SCADA
SCADA
Amit Kumar Shrivastava
Makalah Counter Sinkron dan Counter Asinkron
Makalah Counter Sinkron dan Counter Asinkron
risky arya
Sistemas de Telecomunicações - Aula 14 - Redes ATM, Ethernet, Token Ring e Re...
Sistemas de Telecomunicações - Aula 14 - Redes ATM, Ethernet, Token Ring e Re...
Leinylson Fontinele
Habitações inteligentes
Habitações inteligentes
Patrícia Boal
Automatic temperature control
Automatic temperature control
RANJAN KUMAR
Bài 5 PHẦN MỀM HỆ THỐNG
Bài 5 PHẦN MỀM HỆ THỐNG
MasterCode.vn
Automation PLC & SCADA
Automation PLC & SCADA
NITISH SINGH
04 instalasi mikropon
04 instalasi mikropon
agus saefudin
Chuong v 7.10.09 l
Chuong v 7.10.09 l
okconde
Vpn exposicion
Vpn exposicion
Cristy Ponciano
Kts cac bt giai san ve vhdl 2011
Kts cac bt giai san ve vhdl 2011
Hoàng Elab
Sistem Komunikasi Bergerak
Sistem Komunikasi Bergerak
Materi Kuliah Online
VPN
VPN
Ricardo Canchis Caballero
Chuong 5_ KỸ THUẬT ĐIỀU CHẾ SỐ.pdf
Chuong 5_ KỸ THUẬT ĐIỀU CHẾ SỐ.pdf
CngNguynHuy8
RESTful Web Services with Jersey
RESTful Web Services with Jersey
Scott Leberknight
AWS Lambda
AWS Lambda
Scott Leberknight
Apache ZooKeeper
Apache ZooKeeper
Scott Leberknight
jps & jvmtop
jps & jvmtop
Scott Leberknight
Dropwizard
Dropwizard
Scott Leberknight
Zk meetup talk
Zk meetup talk
Yisheng Liao
Chapter 18 - Distributed Coordination
Chapter 18 - Distributed Coordination
Wayne Jones Jnr
Polyglot persistence for Java developers: time to move out of the relational ...
Polyglot persistence for Java developers: time to move out of the relational ...
Chris Richardson
Polyglot Persistence
Polyglot Persistence
Scott Leberknight
Cloudera Impala, updated for v1.0
Cloudera Impala, updated for v1.0
Scott Leberknight
Rack
Rack
Scott Leberknight
CoffeeScript
CoffeeScript
Scott Leberknight
iOS
iOS
Scott Leberknight
wtf is in Java/JDK/wtf7?
wtf is in Java/JDK/wtf7?
Scott Leberknight
Cloudera Impala
Cloudera Impala
Scott Leberknight
Amazon Simple Work Flow Engine (SWF): How Beamr uses SWF for video optimizati...
Amazon Simple Work Flow Engine (SWF): How Beamr uses SWF for video optimizati...
Amazon Web Services
More Related Content
What's hot
Chuong v 7.10.09 l
Chuong v 7.10.09 l
okconde
Vpn exposicion
Vpn exposicion
Cristy Ponciano
Kts cac bt giai san ve vhdl 2011
Kts cac bt giai san ve vhdl 2011
Hoàng Elab
Sistem Komunikasi Bergerak
Sistem Komunikasi Bergerak
Materi Kuliah Online
VPN
VPN
Ricardo Canchis Caballero
Chuong 5_ KỸ THUẬT ĐIỀU CHẾ SỐ.pdf
Chuong 5_ KỸ THUẬT ĐIỀU CHẾ SỐ.pdf
CngNguynHuy8
What's hot
(6)
Chuong v 7.10.09 l
Chuong v 7.10.09 l
Vpn exposicion
Vpn exposicion
Kts cac bt giai san ve vhdl 2011
Kts cac bt giai san ve vhdl 2011
Sistem Komunikasi Bergerak
Sistem Komunikasi Bergerak
VPN
VPN
Chuong 5_ KỸ THUẬT ĐIỀU CHẾ SỐ.pdf
Chuong 5_ KỸ THUẬT ĐIỀU CHẾ SỐ.pdf
Viewers also liked
RESTful Web Services with Jersey
RESTful Web Services with Jersey
Scott Leberknight
AWS Lambda
AWS Lambda
Scott Leberknight
Apache ZooKeeper
Apache ZooKeeper
Scott Leberknight
jps & jvmtop
jps & jvmtop
Scott Leberknight
Dropwizard
Dropwizard
Scott Leberknight
Zk meetup talk
Zk meetup talk
Yisheng Liao
Chapter 18 - Distributed Coordination
Chapter 18 - Distributed Coordination
Wayne Jones Jnr
Polyglot persistence for Java developers: time to move out of the relational ...
Polyglot persistence for Java developers: time to move out of the relational ...
Chris Richardson
Polyglot Persistence
Polyglot Persistence
Scott Leberknight
Cloudera Impala, updated for v1.0
Cloudera Impala, updated for v1.0
Scott Leberknight
Rack
Rack
Scott Leberknight
CoffeeScript
CoffeeScript
Scott Leberknight
iOS
iOS
Scott Leberknight
wtf is in Java/JDK/wtf7?
wtf is in Java/JDK/wtf7?
Scott Leberknight
Cloudera Impala
Cloudera Impala
Scott Leberknight
Amazon Simple Work Flow Engine (SWF): How Beamr uses SWF for video optimizati...
Amazon Simple Work Flow Engine (SWF): How Beamr uses SWF for video optimizati...
Amazon Web Services
Hadoop
Hadoop
Scott Leberknight
Java 8 Lambda Expressions
Java 8 Lambda Expressions
Scott Leberknight
HBase Lightning Talk
HBase Lightning Talk
Scott Leberknight
Google Guava
Google Guava
Scott Leberknight
Viewers also liked
(20)
RESTful Web Services with Jersey
RESTful Web Services with Jersey
AWS Lambda
AWS Lambda
Apache ZooKeeper
Apache ZooKeeper
jps & jvmtop
jps & jvmtop
Dropwizard
Dropwizard
Zk meetup talk
Zk meetup talk
Chapter 18 - Distributed Coordination
Chapter 18 - Distributed Coordination
Polyglot persistence for Java developers: time to move out of the relational ...
Polyglot persistence for Java developers: time to move out of the relational ...
Polyglot Persistence
Polyglot Persistence
Cloudera Impala, updated for v1.0
Cloudera Impala, updated for v1.0
Rack
Rack
CoffeeScript
CoffeeScript
iOS
iOS
wtf is in Java/JDK/wtf7?
wtf is in Java/JDK/wtf7?
Cloudera Impala
Cloudera Impala
Amazon Simple Work Flow Engine (SWF): How Beamr uses SWF for video optimizati...
Amazon Simple Work Flow Engine (SWF): How Beamr uses SWF for video optimizati...
Hadoop
Hadoop
Java 8 Lambda Expressions
Java 8 Lambda Expressions
HBase Lightning Talk
HBase Lightning Talk
Google Guava
Google Guava
Similar to httpie
Python tools for testing web services over HTTP
Python tools for testing web services over HTTP
Mykhailo Kolesnyk
Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...
Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...
ruyalarcon
Http request&response
Http request&response
Aswin Krishnamoorthy
Design Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John Hardy
ManageIQ
Talking to Web Services
Talking to Web Services
DrupalcampAtlanta2012
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web api
Tiago Knoch
Web develop in flask
Web develop in flask
Jim Yeh
HTTP / 1, HTTP / 2 and HTTP / 3: Past, present and the future of APIs
HTTP / 1, HTTP / 2 and HTTP / 3: Past, present and the future of APIs
Roan Brasil Monteiro
Web services tutorial
Web services tutorial
Lorna Mitchell
Introduction to python scrapping
Introduction to python scrapping
n|u - The Open Security Community
Rpi python web
Rpi python web
sewoo lee
Web Services Tutorial
Web Services Tutorial
Lorna Mitchell
2019 11-bgphp
2019 11-bgphp
dantleech
ASP.NET WEB API Training
ASP.NET WEB API Training
Chalermpon Areepong
ASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP Fundamentals
Ido Flatow
11 asp.net web api
11 asp.net web api
Michael Mieles Caballero
Gohan
Gohan
Nachi Ueno
Rest with Spring
Rest with Spring
Eugen Paraschiv
From ZERO to REST in an hour
From ZERO to REST in an hour
Cisco DevNet
Http request&response by Vignesh 15 MAR 2014
Http request&response by Vignesh 15 MAR 2014
Navaneethan Naveen
Similar to httpie
(20)
Python tools for testing web services over HTTP
Python tools for testing web services over HTTP
Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...
Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...
Http request&response
Http request&response
Design Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John Hardy
Talking to Web Services
Talking to Web Services
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web api
Web develop in flask
Web develop in flask
HTTP / 1, HTTP / 2 and HTTP / 3: Past, present and the future of APIs
HTTP / 1, HTTP / 2 and HTTP / 3: Past, present and the future of APIs
Web services tutorial
Web services tutorial
Introduction to python scrapping
Introduction to python scrapping
Rpi python web
Rpi python web
Web Services Tutorial
Web Services Tutorial
2019 11-bgphp
2019 11-bgphp
ASP.NET WEB API Training
ASP.NET WEB API Training
ASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP Fundamentals
11 asp.net web api
11 asp.net web api
Gohan
Gohan
Rest with Spring
Rest with Spring
From ZERO to REST in an hour
From ZERO to REST in an hour
Http request&response by Vignesh 15 MAR 2014
Http request&response by Vignesh 15 MAR 2014
More from Scott Leberknight
JShell & ki
JShell & ki
Scott Leberknight
JUnit Pioneer
JUnit Pioneer
Scott Leberknight
JDKs 10 to 14 (and beyond)
JDKs 10 to 14 (and beyond)
Scott Leberknight
Unit Testing
Unit Testing
Scott Leberknight
SDKMAN!
SDKMAN!
Scott Leberknight
JUnit 5
JUnit 5
Scott Leberknight
More from Scott Leberknight
(6)
JShell & ki
JShell & ki
JUnit Pioneer
JUnit Pioneer
JDKs 10 to 14 (and beyond)
JDKs 10 to 14 (and beyond)
Unit Testing
Unit Testing
SDKMAN!
SDKMAN!
JUnit 5
JUnit 5
Recently uploaded
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Miguel Araújo
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
The Digital Insurer
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
apidays
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
The Digital Insurer
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
MadyBayot
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Edi Saputra
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
The Digital Insurer
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Dropbox
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
Khem
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Deepika Singh
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
DianaGray10
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
sammart93
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
jfdjdjcjdnsjd
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
apidays
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
apidays
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
wesley chun
Recently uploaded
(20)
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
httpie
1.
Scott Leberknight
2.
"HTTPie: a CLI,
cURL-like tool for humans" - httpie.org
3.
"HTTPie is a
command line HTTP client. Its goal is to make CLI interaction with web services as human-friendly as possible." - httpie.org
4.
Implemented in Python Provides
simple http command Colorized, formatted output
5.
6.
pip install --upgrade
httpie Installation or easy_install httpie or yum install httpie (etc.)
7.
Major Features colorized output output
formatting query/form parameters security (auth, https) headers form file uploads persistent sessions supports all HTTP verbs wget-style downloads streamed responses
8.
Usage http [flags] [METHOD]
URL [REQUEST ITEMS]
9.
3 cool sites
to test with: requestb.in example.org httpbin.org
10.
11.
12.
13.
Let's try it...
14.
Hello World http httpie.org
15.
16.
-v (verbose)
17.
Defaults... method - GET scheme
- http:// data fields - JSON
18.
Request Headers http requestb.in/vnm6qyvn
Accept:application/json X-Test-Header:'Foo, Bar' Name:Value
19.
20.
URL parameters name==value http requestb.in/vnm6qyvn
search=='curl vs. httpie' page==2
21.
22.
Data Fields (JSON) field=value field=@file.txt http
requestb.in/vnm6qyvn search='curl vs. httpie' page=2
23.
...httpie will set
the method to POST when a request contains data fields...
24.
25.
Data Fields (from
a file) http requestb.in/vnm6qyvn data=@/Users/sleberkn/w.txt
26.
27.
Data Fields (form) -f,
--form field=value field=@file.txt http --form requestb.in/vnm6qyvn search='curl vs. httpie' page=2
28.
...httpie will set
the content type to application/x-www-form-urlencoded when you use --form ( or -f )...
29.
30.
Raw JSON field:=value field:=@file.txt http requestb.in/vnm6qyvn
terms:='["curl", "vs.", "httpie"]' page:=2
31.
32.
File Uploads field@/dir/file_name http requestb.in/vnm6qyvn
the_file@/Users/sleberkn/w.txt
33.
...httpie will set
the content type to multipart/form-data when you do a file upload...
34.
35.
Easy as httpie!
36.
HTTP Methods GET POST PUT PATCH DELETE HEAD (and a
few more obscure ones...)
37.
Testing methods with
httpbin.org http GET httpbin.org/get http POST httpbin.org/post foo=bar http PUT httpbin.org/put foo=bar http PATCH httpbin.org/patch foo=bar http -f DELETE httpbin.org/delete
38.
Authentication BASIC (default) or
Digest -a,--auth --auth-type Has plugins for OAuth & others
39.
Username & password
40.
Username & password
prompt
41.
Downloads -d,--download -o,--output http -d -o
out.txt httpbin.org/get
42.
43.
Persistent Sessions Custom headers,
authorization, and cookies persist between requests to the same host Named & anonymous sessions
44.
http --session=user1 -a
user1:secret example.org X-Thingy:Foo http --session=user2 -a user2:monkey example.org Named Sessions
45.
Other stuff... HTTPS support Supports
proxies Redirect to/from http Control output via flags (--headers, --body, --print, etc.) JSON config file Scripting support (via --check-status) Streaming responses
46.
httpie web site: httpie.org (redirects
to https://github.com/jkbr/httpie ) References httpbin HTTP request & response service: httpbin.org RequestBin: requestb.in
47.
My Info twitter: sleberknight www.sleberknight.com/blog scott
dot leberknight at gmail.com
Download now