I am using Cloud Foundry for Bluemix app creation in that curl operations having Authorization:bearer xxxxx
token.
How can I include Authorization: bearer token in request module?
Asked
Active
Viewed 233 times
-1

rtruszk
- 3,902
- 13
- 36
- 53

Gnana Soundari
- 65
- 9
-
See http://stackoverflow.com/questions/27985469/how-to-get-oauth-token-from-cloudfoundry "How to get OAuth token from CloudFoundry". The most easy solution is to use "cf curl" instead of "curl" – Sybil Jun 15 '15 at 11:25
1 Answers
0
The plain open source Clound Foundry client is able to curl the api like this:
$ cf curl -X GET https://.../v2/...
for instance:
$ cf curl -X GET /v2/apps

Felix Friedrich
- 1
- 1