Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5028

How to create a DSP service which make a remote web service POST call with parameters?

$
0
0

With a fresh local bitnami install of 2.3.1 release, I tested POST request; and it is working fine so far. Thanks to @Sasquatch and @mattschaer.

BUT the GET request is not working on 2.3.1.

My curl request:
curl -i -k -3 -X GET "http://mydspinstance.com:8080/api/v2/auth/userinfo" -H "X-DreamFactory-Api-Key: 475.....fbd2" -H "Content-Type: application/json" -H "Authorization: Bearer R35.....gP"

This should do:
GET https://abc.def.com/userinfo

BUT the output is:

HTTP/1.1 400 Bad Request
Date: Sun, 23 Oct 2016 05:02:27 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Vary: Cookie
X-Powered-By: PHP/7.0.11
Cache-Control: no-cache
Content-Length: 89
Connection: close
Content-Type: application/json

{"error":{"context":null,"message":"Invalid token: Wrong number of segments","code":401}}

Any clues ?

Relevant screenshot:


Viewing all articles
Browse latest Browse all 5028

Trending Articles