Nettalk and posting a 'simple' request to a website failure

Under the weather today, and what I thought was going to be a simple 10 minute thing is refusing to work.

Clarion 9.1 and Nettalk 10.46

I’m looking up Provider (Doctor) NPI numbers on the government/CMS website. This is all publically available and you can check it out here:

This is a test query:

If you go to that as a weblink you’ll get a json response with data about a doctor.

When I do it within Clarion, I mostly get a method error not liking the api/ part. Within nettalk, I’ve posted the query directly and as URL/Data. I don’t remember any substantive difference in the error response which typically looks like this: {“timestamp”:“2022-11-21T19:12:01.912+00:00”,“status”:405,“error”:“Method Not Allowed”,“path”:"/api/"}

I’ve used the setcontent method in the code as both json and xml and have also omitted using it without any change.

I’m sure I’m forgetting to do something on the nettalk side, but similar code works fine against other web api. This just isn’t something I do all the time, probably not even yearly.

Any ideas?

I find using the NetTalk demo app’s web client really valuable for troubleshooting.
I only have NT 12 and NT 11.

Pics show that a POST yields the error you quote, and also a suggestion to use GET.

GET pulls the same data that I get pasting the URL into a browser.

I’d check how your client is set up to make the request. (The code and settings in the demo app can help with that.)


Thanks, Jane. Sadly, I even looked at GET for moment, and then went back to POST. I’m blaming this on a week of heavy cold medication. :slight_smile: