Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
514 views
in Technique[技术] by (71.8m points)

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

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 :)

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...