Service Virtualization

Expand all | Collapse all

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

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

    Posted 08-06-2018 04:02 AM

    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?



  • 2.  Re: How to send multipart/form-data request using REST web service step in devtest 9.5

    Posted 08-06-2018 10:04 AM

    Which version of DevTest are you using? Could you open a support case?



  • 3.  Re: How to send multipart/form-data request using REST web service step in devtest 9.5

    Posted 08-07-2018 12:26 AM

    I am using 9.5.0.94. Not aware how to open support case, tried calling agent but they too not sure how to create the case



  • 4.  Re: How to send multipart/form-data request using REST web service step in devtest 9.5

    Posted 08-10-2018 11:07 AM

    Saumya,

     

    DevTest 9.5.0.94 is not a valid release.  At one time it was available for download then taken down and DevTest 9.5.1.6 was put in its place.  So in order to troubleshoot you would need to be on a supported release.  DevTest 9.5.1.6 went EOL on July 20, 2018, is there any way you can upgrade and try your test out on a later release of DevTest?



  • 5.  Re: How to send multipart/form-data request using REST web service step in devtest 9.5



  • 6.  Re: How to send multipart/form-data request using REST web service step in devtest 9.5

    Posted 08-10-2018 06:34 AM

    files to be uploaded - word doc and picture