How do I pass a file to post instead of message
The url i am posting is IP:PORT/app/server/recieve. How do I pass /app/server/recieve in the following program?
struct sockaddr_in {
(short int sin_family; unsigned short int sin_port; struct in_addr sin_addr; unsigned char sin_zero[8];
}
struct sockaddr_in their addr;
their_addr.sin_family=AF_INET;
their_addr.sin_prot = htons(PORT);
their_addr.sin_addr=*((struct in_addr *)he->h_addr);
....
...
send(new_fd, /usr/local/hello.xml, 14,0)...