I'm trying to do an broken link detector in UNIX. Well, my program
runs well, but I have a problem.
When it connects to the server which haves the URL specificated, it
returns me: "403 Forbidden", but when I, from the browser, check the URL
it connects well.
My code is:
// Parse the url -> Obtains the host, and the url requested
// Open the socket whit AF_INET options
// Connect to the server
sprintf(msg, "GET /%s HTTP/1.0\n\n",
// Send the request...
// Waits for response
Must I do any thing else? What is wrong in the request?
Note: I tried to do this with a telnet and it fails, too !!!
Thanks in advance,
IP Multimedia, S.L.
Marina, 16-18 Pl. 18
Telf: (93) 225 99 80
Fax: (93) 225 99 81