Mahesh Shivnatri 3 Posted January 9, 2018 Share Posted January 9, 2018 Hi All, I'm trying to call a REST API which only acceptsContent-Type: multipart/form-data, i know that i've to send the request in the MIME part of the SendHTTP Request, but can anyone help me with exactly how the request would look like Also doi need to define any boundaries while sending the request Thanks Mahesh Link to comment Share on other sites More sharing options...
William Karasz Posted January 9, 2018 Share Posted January 9, 2018 I believe you want to setup your multipart form like so... If your equivalent cURL statement looks like below, curl -X POST https://login.microsoftonline.com//oauth2/token -F grant_type=client_credentials -F resource=https://management.core.windows.net/ -F client_id= -F client_secret=then your Send HTTP Request will look like this: Ref:https://community.tibco.com/questions/bw6-interface-azure-data-lake-store Link to comment Share on other sites More sharing options...
Mahesh Shivnatri 3 Posted January 9, 2018 Author Share Posted January 9, 2018 Hi Wkarasz, Thanks for the reference, but i've tried this and it does not work. What i want is to send a HTTP request that follows content-Type as Multipart-formdata. Now i checked online and looks like this is mime, but still not sure how to send the data. Right now i'm using QueryString to send the data and so far its doing the job, but there is a length limitation on the same. Hence looking for alternatives. Thanks Mahesh Link to comment Share on other sites More sharing options...
William Karasz Posted April 9, 2019 Share Posted April 9, 2019 For anyone still looking for the answer to this question, the following worked for me: In the header, set Content-Type = 'multipart/form-data' In mimePart, create as many multipart/mimeParts you require. Here, my REST APIrequired 2 parts, but could have added more. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now