You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
364 B
C

#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));
}