razetime / ngn-k-tutorial

An ngn/k tutorial.
https://razetime.github.io/ngn-k-tutorial/
195 stars 22 forks source link

Dealig with data from the internet - example #28

Open SebastianMpl opened 8 months ago

SebastianMpl commented 8 months ago

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,

razetime commented 8 months ago

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.