hello I have a problem I need to send some parameters to an http request, but the parameters must be of the form-data type, I have not managed to find out how to send the same, I know that in the activity comes the option to send a string, but I do not achieve know what is the format of it
If you are referring to the Content-Type parameter, you can specify it in the Headers property of the HTTP request activity:
Name: Content-Type, Direction: In, Type: String, Value: "multipart/form-data"
If you want to send a file with the request, you can pass the filepath to the Attachments property.
This helped, thanks lot
If i have some key-value text fields instead of files then how to set them inside http request?
Have you tried using the Parameters property? It gives you the key-value format that you mentioned.
Also, how are you doing the request in another tool? If you are specifying a JSON string in the body of the request, then it might be simpler to just do the same and pass that string to the Body property.
There is some solution to this? I’m having same problem.
Trying to send one ‘application/pdf’ and one ‘text/plain’ into the body so this is and obvious multipart/form-data problem
I don’t know how to fill uipath HTTP Request activity properties to find a good HTTP Status 200
I’ve thought maybe putting in headers the content-type = multipart/form-data and then using parameters to send both, file and text buth the text parameter called “example” cannot be recognized. the request throws me an HTTP Status 400 - Required request part ‘example’ is not present
i want to pass form-data in http request how where i have to give this information in that activity ?
did you got any solution for this ?
Hi, I got this long back, but discussion went on another thread too so I posted solution there.