apoc.load.jsonParams to launch a GET api

I'm having a question wrt calling APIs using apoc.load.jsonParams. I'm able to use it for POST calls, but when trying to use it for a GET method it always returns a 400 telling me the API does't support POST. When I change the method in 'PUT' it gives me the same message of course with doesn't support PUT. So the method parameter is passed correctly but for some reason the GET is still executed as a POST. Anyone else having this issue and found a solution for this?

@peter.de-clercq

at a minimum and to further investigate, is there any detail on Neo4j version? and or APOC version? and/or sample code you are using with apoc.load.jsonParams ?

Thx Dana for your reply
The versions : Neo4J 4.4.5 APOC: 4.4.03
The sample code:
CALL apoc.load.jsonParams( "https://gxxxxx",
{
method:'GET',
Authorization:$token,
Host: "xxxx"
},
''
,'') yield value

@peter.de-clercq

and if you dont include method: 'GET' do you encounter said error. i.e. I have used apoc.load.jsonParams and have not used a method when connecting to an endpoint that support GET

I'm also getting the same 'POST' error

To me, the 400 error represents the http status code returned from the REST API you are calling. A 400 represents a bad client requests. The description of the error you gives tells me the TEST API you are calling does not support a GET method at the endpoint you are calling. This would not be an issue with the apoc method. Have you verified the url you are calling supports the GET method?

It ONLY supports the GET method. That's just the reason why it returns a 400 with the message 'POST is not supported' or 'PUT is not supported' if I change the method parameter to PUT.