我是新來的榆樹, 我有一個登錄API,它在其hedears返回JWT令牌GET請求頭
curl http://localhost:4000/api/[email protected]&password=1234
響應:
HTTP/1.1 200 OK
authorization: Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXyLp0aSI6ImefP2GOWEFYWM47ig2W6nrhw
x-expires: 1499255103
content-type: text/plain; charset=utf-8
success
現在我試着寫一個功能,將發送請求並從榆木頭返回令牌
authUser =
Http.send "http://localhost:4000/api/[email protected]&password=1234"
我該怎麼辦這以一種簡單的方式?
感謝您的幫助!我的請求是一個簡單的請求**沒有**頭,響應有頭 - 我試圖得到**響應**頭 – dina