Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a multipart HTTP POST and how to make it? (scribd)

Tags:

html

http

I'm trying to upload a file to scribd. It says: "The contents of the file to upload. This needs to be expressed as part of a multi-part HTTP POST"..

Anyone know what they mean about this?

It should look something like this: http://api.scribd.com/api?method=docs.upload&file=THE MULTIPART-HTTP-POST&api_key=API-KEY ?

Thank a lot, and sorry if this is the wrong place to ask such a questions :)

like image 714
Johannes Avatar asked Apr 25 '09 12:04

Johannes


1 Answers

It's a way of breaking up the data in a POST request into different discrete types. It's also used quite often to break up emails into multiple attachments with mime types. You can read more about MIME in general (and specifically about multipart POST requests) here.

like image 168
Jason Coco Avatar answered Sep 18 '22 20:09

Jason Coco