2016-06-23 4 views
-1

müssen REST API Anfrage an MSOneNote erstellen Seite über Nodejs erstellen. Wie kann ich Körper von Inhaltstyp "multipart/form-data; boundary = NEWPART"So legen Sie den Textkörper für den Inhaltstyp multipart/form-data fest; Grenze = NewPart für MSOneNote API mit Javascript

Hier ist meine Anfrage Körperprobe

--NewPart 
Content-Disposition: form-data; name="Presentation" 
Content-Type: application/xhtml+xml 
<?xml version="1.0" encoding="utf-8" ?> 
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-us"> 
    <head> 
    <title>Page from OneNote API console</title> 
    <meta name="created" content="2014-03-17T09:00:00-08:00" /> 
    </head> 
    <body> 
    <h1>HTML sample block</h1> 

    <h2>The basics</h2> 
    <p>For the most part, try to keep the HTML simple, and be 
     sure to properly close all tags.</p> 

</body> 
</html> 
--NewPart-- 

.

Könnte jemand pls helfen mir heraus, wie Körper über JavaScript code.I für REST API-Anfrage zu setzen versucht haben, durch die Teile anhängt

Antwort

Verwandte Themen