curl-users
Errors resolving hosts
Date: Wed, 14 Aug 2002 15:31:09 -0700
Forgive me if this is a dumb question, but I have exhausted my resources
searching for an answer.
I have just installed curl (7.9.8) with php (4.2.1) and apache (1.3.26)
on an HP-UX 10.20 development server. After some fighting and reseach
around gethostbyname_r I was able to get it to acknowledge that the call
used 3 parameters. (I verified this with:
/opt/curl/src/curl-7.9.8/lib/config.h:#define HAVE_GETHOSTBYNAME_R_3 1
/opt/curl/src/curl-7.9.8/lib/config.h:#define HAVE_GETHOSTBYNAME_R 1
No tests (with 'make test') failed with name resolution errors (1 ftp
test failed).
But when I attempt to use curl (either via the library routines or directly
from the curl program) I get a "Couldn't resolve host" error. For example:
$ /opt/curl/bin/curl -d "request=cksidpin&sid=865070247&pin=112472&returnurl=default" "192.168.1.1/cgi-bin/rqint>
<?xml version="1.0" encoding="ISO-8859-1"?>
<spEntry>
<spMessage>09 ID and PIN are valid </spMessage>
</spEntry>
$ /opt/curl/bin/curl -d "request=cksidpin&sid=865070247&pin=112472&returnurl=default" "host.site.edu/cgi-bin/rqin>
curl: (6) Couldn't resolve host 'host.site.edu'
Being new to curl and being rusty on my programming, can you suggest any
tricks for debugging this? Is this a known issue? Any help would be welcome.
Thank you and best wishes,
--Bill
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
Received on 2002-08-15