This is the curl command: echo Hello world. | curl -F 'f:1=<-' ix.io
I tried this, but it didn't work as the server threw a 400 instead of a 200 status code.
import requests
requests.post("http://ix.io", files={"file": ("", "Hello world.")}, data={"f":"1=<-"})
How would I replicate that command?