appi
appi

Reputation: 75

error with submitting page using curl..in shell script

using below command in shell script:

DATE="2017/04/18"
curl --data "transactionNumber=12520264&traceNumber=466245&serviceDate=${DATE}" http://isp:7005/ClaimUtility/claimReversal

Getting below response:AS ERROR

  <p><b>message</b> <u>Request method 'POST' not supported</u></p>
  <p><b>description</b> <u>The specified HTTP method is not allowed for the requested resource (Request method 'POST' not supported).</u></p>

what should be the correction required??

Upvotes: 0

Views: 52

Answers (2)

appi
appi

Reputation: 75

Agree with John Weldon

endpoint you're trying to post to http://isp:7005/ClaimUtility/claimReversal does not support POST requests.

So i have corrected the URL which is supporting POST form ie.http://isp:7005/ClaimUtility/claimReversalReversal

Upvotes: 0

John Weldon
John Weldon

Reputation: 40759

This means that the endpoint you're trying to post to http://isp:7005/ClaimUtility/claimReversal does not support POST requests.

You can try using GET and the content will be encoded as application/x-www-form-urlencoded on the url as query params.

Upvotes: 1

Related Questions