Error : HTTP Status-Code=415 (Unsupported Media Type)

304 views
Skip to first unread message

joel

unread,
Aug 29, 2014, 12:11:57 AM8/29/14
to LR-Loa...@googlegroups.com
Hi All,

While posting an xml request I get "HTTP Status-Code=415 (Unsupported Media Type)" Error
Can anyone help me here.

I have added the necessary header for the request.

The request is as below:
web_custom_request("AxisServlet", 
          "Method=POST", 
          "TargetFrame=", 
          "Resource=0", 
          "RecContentType=text/xml", 
          "Referer=", 
          "Mode=HTML", 
          "EncType=text/xml; charset=utf-8", 
          "Body={xmlBody}",
LAST);

Thanks,
Rohan

James Pulley

unread,
Sep 9, 2014, 9:26:56 AM9/9/14
to LR-Loa...@googlegroups.com
Use a protocol analyser for this work (such as Wireshark or Sniffer)

Examine a working request and what is sent from a header and content perspective

Examine a non-working request for what is sent from a header and contect perspective

Compare the two.  You should find the source of your problem

You could also use an HTTP proxy to capture the items, such as Fiddler or Charles Proxy.   This path might be easier to pull off given the HTTPS communication between your client and your host in this case.    Dump the two captures to files and then use a file comparison tool to examine the differences in your headers and body.   It should become quite apparent what is missing or not quite correct.
Reply all
Reply to author
Forward
0 new messages