-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Headers problem #84
Comments
I just tried this example successfully:
This one has eel perform basic auth against this public test endpoint: https://jigsaw.w3.org/HTTP/ Note that headers is the 4th parameter of curl() and has to be json encoded. You might also find the built-in test endpoint http:///test/ast useful for debugging eel expressions as you construct them. |
{{curl('POST', '{{prop('node_api')}}', '', '{"Authorization":"Basic bXVsdGljaGFpbnJwYzpIOHJ5U1NwNU5lRFVWc3VB1856cFlSSEFFcWl1cUFzZzk2Q0JZMw=="}')}} gives error "Message": "invalid json in config file config-handlers/tenant1/default.json", what is wrong here? |
I soved it. Should look like this {{curl('GET','https://jigsaw.w3.org/HTTP/Basic/','','{\"Authorization\":\"Basic Z3Vlc3Q6Z3Vlc3Q="}')}} |
I take headers from the request & put them into curl (the upstream requires basic auth), but the upstream returns 401, despite the login&password is absolutely correct (direct connect from client to upstream works correct, if client connects to upstrem through EEL - the upstream returns 401)
The text was updated successfully, but these errors were encountered: