concordion / cubano

A packaged framework for implementing web and API test suites. Builds on Concordion to bring your software delivery team together around living documentation.
http://concordion.org/cubano/framework
Apache License 2.0
15 stars 2 forks source link

"multipart/form-data" form submission for a http request. #108

Closed jimmykemp closed 4 years ago

jimmykemp commented 4 years ago

The FormDataWriter class uses the System.lineSeparator(), assigned to the variable NEW_LINE, to allow for platform independence.

It would appear however, that the NEW_LINE chars required for separation of Fields is always "\r\n" and not ("\n").

When on a 'ux' platform this results in an exception ('Header section has more than 10240 bytes (maybe it is not properly terminated)')

There is a short post here which describes the issue, and this resolution. (https://stackoverflow.com/questions/54437636/header-section-has-more-than-10240-bytes-maybe-it-is-not-properly-terminated)

Please note: the unit test updates are simply to get a build running via Jitpack, and need to be reviewed.