Skip to content

Instantly share code, notes, and snippets.

@bhargavbhegde7
bhargavbhegde7 / socket.c
Created March 7, 2016 12:06 — forked from nolim1t/socket.c
HTTP Request in C using low level write to socket functionality
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>