I am working with an API, and I am posting to it using CURL, but I need to now extend it to simulate post data should be formatted as multipart/form-data as such:
- media (required) - Binary image data
- username (required) - Twitter username
- password (required) - Twitter password
- message (optional) - Message to post to twitter. The URL of the image is automatically added.
The media that I am trying to post is on a diffferent website, so how can I open this image, and then do a post of it using CURL?
I can't seem to figure it out.