Jump to content

HTTP Request for Multipart FormData


Mahesh Shivnatri 3

Recommended Posts

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

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

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

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...