AnsweredAssumed Answered

How to send multipart/form-data request using REST web service step in devtest 9.5

Question asked by saumya_Pandey168 on Aug 6, 2018
Latest reply on Aug 10, 2018 by MarcyNunns

I am sending below request for adding attachment to JIRA issue using JIRA API, but the file is getting attached without content and file size is always 0 byte, although API is returning response successfully with proper code and JSON.

 

POST /rest/api/latest/issue/CHARM-6654/attachments HTTP/1.1
Pragma: no-cache
Cache-Control: no-cache
X-Atlassian-Token: nocheck
lisaFrameRemoteIP: {IP}
lisaFrameRoot: true
lisaFrameID: cfdf4e90-994d-11e8-b5fb-323920524153
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="get_grp_03_2018-07-03.html"
Content-Type: text/html


------WebKitFormBoundary7MA4YWxkTrZu0gW--

 

Is there any config change required? Or anyway suggestion to get the attachment done perfectly?

Outcomes