ngn-k-tutorial icon indicating copy to clipboard operation
ngn-k-tutorial copied to clipboard

Dealig with data from the internet - example

Open SebastianMpl opened this issue 2 years ago • 1 comments

Hi,

It would be great If you could add to the IO section an example about the use of data from the internet. I found that it supports the form host:protocol but cant find it working for URL adresses. I found that I can use my shell commans like: \curl https://example.com but can't find a way to make K deal with the data (I'm to newbie in K) #\curl https://example.com doesn't count the length of the data...

Thank you,

SebastianMpl avatar Feb 21 '24 07:02 SebastianMpl

the way to get data from \ commands is a bit obtuse:

."\\curl https://example.com"

I will add this to the tutorial. Thanks for asking.

Regarding the host:protocol format, I will add to this thread once i have some correct info on that.

razetime avatar Feb 21 '24 14:02 razetime