Hi all,
I create a socket :
descripteur = socket(AF_INET, SOCK_STREAM,0);
After I try to connect to the server :
connect(descripteur, (struct sockaddr *)&infoserveur, sizeof(infoserveur))<0
I send a request like "HEAD <PATH> HTTP/1.0"
octetsenv = send(descrip, url,longr,0);
I try to receive with :
numoctets = recv(descrip,buf,300,0)
I receive :
HTTP/1.1 400 Bad request
Server: Netscape-Enterprise/6.1 AOL
Date: Sat, 03 Jul 2004 01:48:28 GMT
Content-length: 147
Content-type: text/html
Connection: close
<HTML><HEAD><TITLE>Bad request</TITLE></HEAD>
<BODY><H1>Bad request</H1>
Your browser sent a query this server could not understand.
Please if you can help.
M.N
I create a socket :
descripteur = socket(AF_INET, SOCK_STREAM,0);
After I try to connect to the server :
connect(descripteur, (struct sockaddr *)&infoserveur, sizeof(infoserveur))<0
I send a request like "HEAD <PATH> HTTP/1.0"
octetsenv = send(descrip, url,longr,0);
I try to receive with :
numoctets = recv(descrip,buf,300,0)
I receive :
HTTP/1.1 400 Bad request
Server: Netscape-Enterprise/6.1 AOL
Date: Sat, 03 Jul 2004 01:48:28 GMT
Content-length: 147
Content-type: text/html
Connection: close
<HTML><HEAD><TITLE>Bad request</TITLE></HEAD>
<BODY><H1>Bad request</H1>
Your browser sent a query this server could not understand.
Please if you can help.
M.N