C does not have any functionality to conveniently get a web site like the standard Java libraries.
You can use libcurl which is a fairly convenient way of doing it or writing everything in sockets yourself in which case I’d say familiarise yourself with C network programming first: Beej’s Guide to Network Programming
solved get HTML content from C code [closed]