It's all about the answers!

Ask a question

RQM: ERROR: content type text/html; charset=UTF-8 is not supported.


Manjula Venkatesh (111) | asked Oct 12 '20, 2:55 a.m.
Hello,  We are using RQM-V6.0.6.1 and have developed a REST API in perl and use command line scripts to execute test cases. I have been getting the ERROR:content type text/html; charset=UTF-8 is not supported in the output file after execution. I was told by our internal support team that the POST method is wrongly used and hence this error.

the request made to the server is of the format:
Request($method, $uri [, $body_content, $options ] );

and in my code: RQM_library::Request( 'POST', "$host_context_g/j_security_check", "j_username=$username&j_password=$password", { "Content-Type" => "application/x-www-form-urlencoded; charset=utf-8" } );

 1. Is this the right way? Should we specify the content type and Content or are these optional?

2. While decoding I also realized that the test scripts and test data linked to the test case are not fetched at all because of this error. Please support

One answer



permanent link
Subhajit Bhuiya (6222) | answered Nov 24 '20, 12:28 a.m.
JAZZ DEVELOPER

 Use ETM URL Utility to make GET, PUT, POST call

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.