Bug #539
A POST request on FDSN Station for format=text returns text with incorrect MIME type (XML rather than text)
0%
Description
Using the format option in a POST body should override the setting in the configuration file. In this case, the configuration is for XML and the POST request is format=text. There result is the return data is text, which is correct, but the return HTTP header has application/xml, which is incorrect and should be text/plain. Reported by Staphane Zuzlewski 6-Jun-2014.
post data in req file
format=text
level=channel
BK * -- LHZ 1995-01-11T01:11:00 1998-02-22T02:22:00
command that show issue
curl --data-binary @req -v -o channel.txt http://service.iris.edu/fdsnws/station/1/query
Using a GET version responds correctly
History
#1 Updated by Robert Weekly over 10 years ago
When specifying 'format=text' in the body of a POST message, the following error occurs when testing webserviceshell ver. 1.1.6 using JMeter:
Error 400: handlerProgram exit code: 3 handlerProgram message: Unrecognized option: --STDIN
#2 Updated by Mike Stults over 10 years ago
- Status changed from New to Closed