Post-style web service requests: Commented lines that happen to contain a known parameter cause failures
Hi Mike: Looks like the doIrisProcessing routines by-and-large pay respect to #-commented lines such as # This is a comment.
However somewhere in the journey it must be parsing commented lines because if you enter a known query parameter in such comments it will confuse it for an entry meant for the user's request. For example "# This post file will test the format bug". (where format is a legit query param).
(1) Save the following to a file called foo.txt
# This is a test. The new format is really great! # Bug 1234 # nodata=404 CI BAR -- BHE 2015-07-01T00:00:00 2015-07-30T00:00:00
(2) Curl it to the federator service like so:
curl --data-binary @./foo.txt -s -D - https://service.iris.edu/irisws/fedcatalog/1/query
I'm seeing this error returned:
Error 400: doIrisProcessing - Invalid value for parameter: format