Could Someone Demonstrate How to Write to the MFS in Python Via the HTTP API?

I’m a little lost. I’ve been trying all night to write to IPFS with the HTTP API via the /files/write path. Working on an open source social network.

I’ve been using urllib for my project, if that helps.

Here’s the code I’ve been working with:
https://pastebin.com/W9eNz1Pb

Here’s the call I made:
file(“GANN/status”).write(“Three blind mice!”)

Pathes for the MFS start with a leading slash. :slight_smile:

My function automatically adds a leading slash.