hello everyone,
i have a problem regarding networking apis of unix link systems ....i
don know this is the best place this
request but i cudnt get one .(so also suggest where to ask such
questions)
the problem is that after finally connecting to the server when i send
a get request the server returns bad request error ...i use something
like:
write(sockfd,"G ET /index.html \r\n Host: 10.10.19.222:80 \r\n\r\n",
50); /*the size argument actually is given */
/
*by the sizeof operator of c (here i wrote 50*/
where is the problem in the system (server ,code ,write() ,etc)
the server is apache running on my local machine ....
how are \r\n interpreted by write() .....
i use fedora8(linux)
thanks a lot
Mohan
i have a problem regarding networking apis of unix link systems ....i
don know this is the best place this
request but i cudnt get one .(so also suggest where to ask such
questions)
the problem is that after finally connecting to the server when i send
a get request the server returns bad request error ...i use something
like:
write(sockfd,"G ET /index.html \r\n Host: 10.10.19.222:80 \r\n\r\n",
50); /*the size argument actually is given */
/
*by the sizeof operator of c (here i wrote 50*/
where is the problem in the system (server ,code ,write() ,etc)
the server is apache running on my local machine ....
how are \r\n interpreted by write() .....
i use fedora8(linux)
thanks a lot
Mohan
Comment