Comments (3)
I just tried this example successfully:
{{curl('GET','https://jigsaw.w3.org/HTTP/Basic/','','{"Authorization":"Basic Z3Vlc3Q6Z3Vlc3Q="}')}}
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.
from eel.
{{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?
from eel.
I soved it. Should look like this {{curl('GET','https://jigsaw.w3.org/HTTP/Basic/','','{\"Authorization\":\"Basic Z3Vlc3Q6Z3Vlc3Q="}')}}
from eel.
Related Issues (20)
- Engraved in code transformation. HOT 3
- Unmatched quotes in jtp/inproc.go:127 HOT 1
- Remove object from every response HOT 5
- How-to questions on submitting pull-requests HOT 1
- Docker build error HOT 1
- Insert root element into an array
- fatal error: concurrent map iteration and map write
- -config flag listed as optional, is actually required HOT 2
- Add travis ci support HOT 1
- Event handler should return 202 instead of 200 HOT 1
- Need help on both request & responce transformation HOT 1
- eval - cannot get a single value HOT 6
- How to use multiple "curl"s correctly ? HOT 3
- Is there such thing as "try..catch" ? HOT 1
- One handler or many handlers ?
- Multiple elements arrays howto ? HOT 1
- SSL support HOT 1
- Alphabet sorting enable/disable ? HOT 1
- How to extract
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eel.