ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

SV-Unable to POST form-data with REST step

book

Article ID: 186329

calendar_today

Updated On:

Products

CLOUDTEST CA Application Test CA Cloud Test Mobile MOBILECLOUD Service Virtualization

Issue/Introduction

We are trying to POST form-data with the REST step in DevTest. But it's not working.

 

POST /action HTTP/1.1

Host: milton.t-abc.com

Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW


------WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="lab"


lab14

------WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="sub"


U-61ce4f75-50a3-44d9-864e-24aa80c8df0b

------WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="action"


consumer_profile_v2

------WebKitFormBoundary7MA4YWxkTrZu0gW--

 

 

 

Environment

Release : 10.3

Component : CA Application Test

Resolution


Workaround:  Use HTTP/HTML Step

HTTP/HTML Step has the Form built in using POST Parameters. 

URL : https://milton.t-abc.com/action 

Form Encoding: application/x-www-form-urlencoded    ( instead of multipart/form-data )


Attachments