Hi
I am using the provided “http client.c” Dyn C sample program to study web page access and headers. It works fine when I provide a name (google.com) or an IP address x.z.y.a.
However when I try to access a locally (Win 7 PC) running Apache web server (XAMPP) the program times out with an obscure error, see below. I am entering the URL = 127.0.0.1/phpsampletest/index.php. This works from any local web browser but not from when I enter the same address into the http client.c demo pgm. Any ideas as to why?
Thanks! Al
-----------------returned message when running “http client.c”
Retrieving [127.0.0.1/phpsampletest/index.php]…
HTTPC: using scheme ‘’
httpc_get: opening socket
HTTPC: Resolving 127.0.0.1
HTTPC: Opening IP=7F000001 port=80 iface=0xff
HTTPC: unexpected error (rem=1), aborting connection
HTTPC: unexpected error (rem=1), aborting connection
error -405 calling httpc_get_url()
Enter URL (blank to exit):