i have problems with a HEAD Request to a webserver. The GET Method works and i get the /index.html or something else.
But a HEAD Request don’t start a read event, only a WIP_CEV_OPEN and a PEER CLOSE event appears.
What is wrong in the wip_getFileOpts?
http = wip_HTTPClientCreateOpts(http_event,NULL,WIP_COPT_HTTP_HEADER,“User-Agent”,“WIP-HTTP-Client/1.0”,WIP_COPT_END);
wip_getFileOpts (http,"http://<server>/index.html", http_event,NULL, WIP_COPT_HTTP_METHOD, WIP_HTTP_METHOD_HEAD, WIP_COPT_HTTP_HEADER,"Accept","text/html", WIP_COPT_END);
My Webserver log seems ok, because he writes the following:
220.127.116.11 - - [15/Jun/2008:13:52:49 +0200] “HEAD /index.html HTTP/1.0” 200 -