Update get_html to work with github pages
I didn't bother stripping the HTTP headers from the response.
Ship it.
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
diff --git a/tests/get_html.c b/tests/get_html.c
index f1e24e2..1aaf027 100644
--- a/tests/get_html.c
+++ b/tests/get_html.c
@@ -22,7 +22,7 @@
int dfd, ret;
char buf[256];
char addr[256];
- host = "146.148.59.222";
+ host = "185.199.109.153";
page = "files/test.html";
port = "80";
@@ -48,7 +48,8 @@
exit(-1);
}
/* short get style */
- snprintf(buf, sizeof(buf), "GET /%s\r\nConnection: close\r\n\r\n",
+ snprintf(buf, sizeof(buf),
+ "GET /%s HTTP/1.1\r\nHost: akaros.org\r\nConnection: close\r\n\r\n",
page);
ret = write(dfd, buf, strlen(buf));
if (ret < 0) {