dyalog / library-conga Goto Github PK
View Code? Open in Web Editor NEWHTTP tools based on Dyalog APL's core communication library, Conga
Home Page: http://docs.dyalog.com/latest/Conga%20User%20Guide.pdf
License: MIT License
HTTP tools based on Dyalog APL's core communication library, Conga
Home Page: http://docs.dyalog.com/latest/Conga%20User%20Guide.pdf
License: MIT License
Reproduced in DSS 2021-01-18 18.0.39845.0, 64-bit 18.0 Unicode_DV_64.exe 02c20cd8
conga dll 3.3.1542
HttpCommand.Version
HttpCommand 3.1.1 2021-02-04
nh←HttpCommand.Get 'http://www.thl.fi'
nh.(HttpStatus HttpMessage)
200
Allow for using a persistent connection
Maybe something like
c←⎕NEW HttpCommand
c.Persist←1
Have a look at:
library-conga/HttpUtils.dyalog
Lines 293 to 297 in 3113aea
CongaHttpHeader wants Type to be ''.
library-conga/HttpUtils.dyalog
Lines 145 to 150 in 3113aea
But on the next line CongaHttpBody wants Type not to be 'Conga'.
library-conga/HttpUtils.dyalog
Lines 172 to 177 in 3113aea
How can that be?
Isn't FormData always empty when processing a GET?
library-conga/HttpUtils.dyalog
Lines 335 to 339 in 3113aea
Allow HttpCommand to maintain a "listening" loop for streamed data (e.g. Twitter feed)
Reproduced in DSS 2021-01-18 18.0.39845.0, 64-bit 18.0 Unicode_DV_64.exe 02c20cd8
conga dll 3.3.1542
HttpCommand.Version
⍝⍝⍝HttpCommand 3.1.1 2021-02-04
nh←HttpCommand.Get 'http://www.kela.fi/web/en/statistics-by-topic_statistics-on-child-day-care-subsidies'
does not return/terminate
HttpCommand.Version
┌───────────┬──────┬──────────┐
│HttpCommand│2.3.05│2020-04-10│
└───────────┴──────┴──────────┘
hc←⎕NEW HttpCommand
hc.Headers←('Authorization' 'token blahblah')('Accept' 'application/vnd.github.v3.raw ')
hc.URL←'https://api.github.com/repos/Dyalog/library-conga/releases'
res←hc.Run
LENGTH ERROR: Invalid left argument
firstCaps[0] firstCaps←{1↓{(¯1↓0,'-'=⍵)(819⌶)¨⍵}'-',⍵} ⍝ capitalize first letters e.g. Content-Encoding
∧
HttpCommand.Get does not work in runtimes if not in Dyalog directory
this is because it needs ws/conga.dws in the current directory where the .exe is
Create a WS with this ⎕LX function lx:
'f'⎕WC'form'
:Trap 0
r←HttpCommand.Get'www.dyalog.com'
'f.e'⎕WC'edit'('text'r.Data)
:Else
'f'⎕WS'bcol' 200 0 0
:EndTrap
⎕DQ'.'
⎕OFF
make a new directory.
copy dyalogrt.exe to it
nothing shows in the edit field until you make a ws subdirectory with conga.dws in it.
Development versions work because they have access to development registry and environment values.
See mantis 20038.
Need to add a tag ("Pre-19.0") and then point all versions before 19.0 to this tag).
- need to alter all pre-19.0 svn externals to use this tag
Need to remove all HttpComand-related files from this repo, and update README.md
Cookies should be forwarded (if applicable) on a redirection
]load library-conga\httpcommand
May have a conflict with cookies with same name, especially if they come in in trailer when chunked
Currently you need to do an n×2⍴ of the header argument. Should be able to specify ('name' 'value') or (('name1' 'value1')('name2' 'value2'))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.