REST service multipart/mixed request problem
Hi! I want to send the belowmultipart/mixed type of request from SoapUI but I am unable to add the Content-MD5 header to the second part of body.This header is needed, otherwise the request will fail. My question is: How to add custom headers into a part of multipart request body? Raw request taken from Fiddler, when response is OK: POST http://srv2012r2:8080/simo/api/documents HTTP/1.1 ... Content-Type: multipart/mixed; boundary=19D523FB Host: srv2012r2:8080 Content-Length: 11979 Expect: 100-continue --19D523FB Content-Type: application/json { "fields":[{"Key":"e9e269b9-867f-4cf6-946f-db49091cd52d","Value":"Simplest documentever.docx"}], "storageappid":"d9ca0630-e4f8-4112-a411-ff04d89f2225" } --19D523FB Content-Type: application/octet-stream Content-Disposition: attachment; filename="Simplest+document+ever.docx" Content-MD5: EFV8OUymEQRJLoppzOjQ1w== PK ! ߤÒlZ [Content_Types].xml ¢( ´”ËnÂ0E÷•ú‘·Ub袪*‹>–-Ré{Vý’Ǽþ¾QU‘ ... --19D523FB--Solved10KViews0likes10CommentsPrefix a property transfer in header
I am using a property transfer to take an oAuth access_token from a response and transfer it to my next GET REST request. The header Name is "Authorization" and the value needs to be in the format "Bearer xxxxxx" ( wherexxxxxx is the transferred access_token) How to I add the Bearer prefix into my GET request? Do I need to add something in the property transfer target? Or is this done via test step properties?Solved9.9KViews0likes10Comments