Hello .. I can do your projects.. What languages you like to implement i it .. i have been working on similar projects before.
we can implement the function like this
bool http_request (const char* method, const char* path,
const char* hostname, unsigned short port){
int sock;
struct hostent* host;
struct sockaddr_in dst;
char* buf;
size_t bufsize;
if((buf = (char *) malloc(2000)) == NULL){
return false;
}
memset(&dst, 0, sizeof(dst));
dst.sin_family = AF_INET;
dst.sin_port = htons(port);
.....