cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: java/curl DNS issue on Linux

From: Mann, Bryan <Bryan.Mann_at_ci.austin.tx.us>
Date: Fri, 27 Oct 2006 08:02:34 -0500

Ok, I will try getting extended error info and strace. Also I do
statically allocate the curl handle in C code so that it lives through
the entire call sequence.

And regrettably curl at the command line and simple.c(compiled to
simple) from the examples work just fine. tcpdump reveals completely
sane dns queries and eventual return of the URL requested.

The only difference I can think of is that JNI requires a 'by hand' ld
so if I have that wrong I might see these results. I'll keep at it.
Well and swig is in there but it's plain vanilla JNI stuff. Maybe I can
"break" simple with by hand gcc, ld to produce similar results :-)

Bryan.

--
Bryan Mann, Programmer Analyst, City of Austin
(512)-974-1160
-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Thursday, October 26, 2006 3:32 PM
To: libcurl development
Subject: Re: java/curl DNS issue on Linux
On Thu, 26 Oct 2006, Mann, Bryan wrote:
> I am attempting to use www.swig.org and libcurl(7.15.5) to create a
more 
> extensive java for curl binding on Linux(knoppix 3.4) than what I find
on 
> the Net.
Sounds like a good plan!
> To test my "binding" I have re-written simple.c into simple.java and
am 
> getting a CURLE_COULDNT_RESOLVE_HOST error.
Now that's odd. Can you use curl find from the command line with the
same 
URL/host ?
> I'm pretty much out of ideas on this except to start digging into
libcurl 
> code itself.  I am happy to provide what code I have for anyone that
thinks 
> that might help debug the problem.
First, enable CURLOPT_VERBOSE to see if you get any further info!
If that doesn't help, you could also try stracing your process to see if
you 
get any further info that reveals why this might happen.
-- 
  Commercial curl and libcurl Technical Support:
http://haxx.se/curl.html
Received on 2006-10-27