mjmostachetti
mjmostachetti

Reputation: 716

How do you access a website and read it's contents in c?

I'm trying to access a website url(https) and read back it's contents(a json from an api). What c commands would I use?

Upvotes: 0

Views: 300

Answers (1)

user26347
user26347

Reputation: 604

Have you looked at libcurl? Never used it, but I've seen it used quite a bit. Otherwise it's going to be somewhat system dependant, if you're on linux you could use popen() on a command that dumps to stdout.

Upvotes: 2

Related Questions