Skip to content

loiphin/micropython-http-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

MicroPython HTTP Client

HTTP 1.0 client for MicroPython with a small subset of the API of Requests for Humans. Please note that it does not verify SSL certificates.

import http_client

r = http_client.get('http://httpbin.org/get')
r.raise_for_status()
print(r.status_code)
print(r.text)  # r.content for raw bytes

r = http_client.post('http://httpbin.org/post', json={'hello': 'world'})
print(r.json())

About

MicroPython HTTP Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%