# LAB1 學號 ## Compile with gcc and Run ``` gcc lab1.c -o lab1 ./lab1 ``` ## Functionalities of this work 1. Seperate input into <host>/<uri>. 2. Use getaddrinfo to get IPv4 address of the host. 3. Create and connect socket to the host. 4. Send HTTP GET request. 5. Obtain hyperlinks from response - use strstr() & strncpy() to filter out special tokens. ## Screenshot ![example](https://i.imgur.com/iOmyr2n.png)