Added test main function

master
Aadhavan Srinivasan 2 years ago
parent aed4fdb08a
commit dbbf6bf0c5

@ -0,0 +1,12 @@
#include "url.h"
#include "request.h"
#include <stdio.h>
int main() {
char* url_str = "http://www.google.com";
// URL* url = new_url(url_str);
// printf("Schema is %s\nHostname is %s\nPort is %s\nFilepath is %s\n",get_schema(url),get_hostname(url),get_port(url),get_filepath(url));
Request* req = new_request(url_str,"GET");
printf("%s",make_request(req));
}
Loading…
Cancel
Save