Forum Discussion
testspayce
12 years agoOccasional Contributor
Dear Marcus,
thank you for your time and effort but the situation is slightly complicated. I cannot make JSON requests, multipart form data is required. I also must put the QUERY parameters in the URL. See below. These are requirements that I cannot readily change.
<html>
<head>
<meta content="HTML Tidy for Java (vers. 26 sep 2004), see www.w3.org" name="generator"/>
<title>Apache Tomcat/7.0.40 - Error report</title>
<style type="text/css"><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head>
<body>
<h1>HTTP Status 415 - Unsupported Media Type</h1>
<hr noshade="noshade" size="1"/>
<p>
<b>type</b>
Status report
</p>
<p>
<b>message</b>
<u>Unsupported Media Type</u>
</p>
<p>
<b>description</b>
<u>The server refused this request because the request entity is in a format not supported by the requested resource for the requested method.</u>
</p>
<hr noshade="noshade" size="1"/>
<h3>Apache Tomcat/7.0.40</h3>
</body>
</html>
and when I check "Post QueryStr.."
<Response xmlns="http://..">
<description>session Id required</description>
<errorCode>-100</errorCode>
<success>false</success>
</Response>
thank you for your time and effort but the situation is slightly complicated. I cannot make JSON requests, multipart form data is required. I also must put the QUERY parameters in the URL. See below. These are requirements that I cannot readily change.
<html>
<head>
<meta content="HTML Tidy for Java (vers. 26 sep 2004), see www.w3.org" name="generator"/>
<title>Apache Tomcat/7.0.40 - Error report</title>
<style type="text/css"><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head>
<body>
<h1>HTTP Status 415 - Unsupported Media Type</h1>
<hr noshade="noshade" size="1"/>
<p>
<b>type</b>
Status report
</p>
<p>
<b>message</b>
<u>Unsupported Media Type</u>
</p>
<p>
<b>description</b>
<u>The server refused this request because the request entity is in a format not supported by the requested resource for the requested method.</u>
</p>
<hr noshade="noshade" size="1"/>
<h3>Apache Tomcat/7.0.40</h3>
</body>
</html>
and when I check "Post QueryStr.."
<Response xmlns="http://..">
<description>session Id required</description>
<errorCode>-100</errorCode>
<success>false</success>
</Response>