Time |
S |
Nick |
Message |
02:19 |
|
|
linovia_ joined #rest |
02:29 |
|
|
tellnes_ joined #rest |
07:10 |
|
|
SitiSchu joined #rest |
07:16 |
|
|
SitiSchu left #rest |
09:14 |
|
|
wsieroci joined #rest |
12:33 |
|
|
Haudegen joined #rest |
16:32 |
|
|
setuid joined #rest |
16:32 |
|
setuid |
Has anyone here used restclient before? (chrome add-on) |
16:33 |
|
setuid |
I'm running into walls trying to construct a scenario where my POST returns an access_token, and then I reuse that access token in the Authorization header of the next GET request |
16:33 |
|
setuid |
No matter what I've tried, I get a 401, Unauthorized |
16:33 |
|
pdurbin |
I tend to use curl. |
16:34 |
|
setuid |
This same construction works in python, using requests and session, so I know it's all working |
16:34 |
|
setuid |
pdurbin: Can you use curl to POST and GET in the same command, storing the return of the POST and constructing the header of the GET at the same time? |
16:34 |
|
setuid |
POST requests auth, returns auth token, that token must be passed in the GET |
16:35 |
|
setuid |
along with 1/2 dozen other headers that validate the POST is coming from the "right" client |
16:35 |
|
setuid |
I can't seem to get restclient to pull the access_token result from the POST, and reuse it in the GET that it does right after in the same scenario |
16:36 |
|
setuid |
I tried using its 'environment' feature to stuff the value into a variable I could use, then created an "Authorization:" header that had ${"access_token"}, but it always returns 401 |
16:36 |
|
pdurbin |
setuid: no, but you'd write a little shell script to capture the output of the POST so you can use it in a subsequent curl command that does the GET. |
16:36 |
|
setuid |
pdurbin: Right, that's whaat my working python does, but I need to model this in restclient |
16:37 |
|
setuid |
so I can tweak things rapidly |
16:37 |
|
setuid |
I don't think restclient has the notion of 'state' or 'session' |
16:38 |
|
setuid |
My restclient environment specifies: access_token = ${"access_token"} |
17:46 |
|
pdurbin |
I guess I don't understand why you can't tweak things rapidly in Python. |
17:47 |
|
pdurbin |
Maybe restclient has a support channel. |
18:43 |
|
|
cornbread joined #rest |
19:09 |
|
|
wsieroci joined #rest |
19:11 |
|
setuid |
I've looked, no such beast |
19:11 |
|
setuid |
It's really frustrating, and I've spent over 5 hours on it already today |
22:25 |
|
|
wsieroci joined #rest |
23:36 |
|
|
igitoor_ joined #rest |
23:45 |
|
|
igitoor_ joined #rest |