char *hello = "GET /index.php HTTP/1.1\r\nHost:ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com\r\nUser-Agent:runscope/0.1\r\nContent-Type:application/json\r\nConnection:close\r\n\0";
I sometimes forget you need to add a null byte to the end of strings. \0
Without the null byte strlen and most other string manipulation functions dont work