Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Using Python Requests to post RPM to API

marshyski edited this page Oct 7, 2014 · 1 revision
import requests

url = 'http://localhost/api/upload'
files = {'file': open('yobot-4.6.2.noarch.rpm', 'rb')}
r = requests.post(url, files=files)
print(r.text)

Clone this wiki locally