Sanjeev | 1 Jan 06:16 2003
Picon

HAPPY NEW YEAR!!!

I WISH YOU ALL A VERY HAPPY AND PROSPEROUS NEW YEAR!!

Bye
Sanjeev

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

Michael McFarland | 1 Jan 06:38 2003
Picon

strange "Couldn't resolve host" error

   I have a program written using pycurl which is
consistently producing what seems like an unusual
error.  When accessing a particular URL of the form
'https://12.34.56.7/xyz', I get a curl exception #6: 
"Couldn't resolve host 'www2.foo.net'".

   It seems unusual to me that there would be a DNS
issue when I'm accessing the site by IP.  Anyone have
a spare clue on what could be happening?  I'm using
libcurl 7.9.8 w/ SSL and pycurl 7.9.8.4 on a redhat
7.3 system.

  - Michael

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

Bryan Richard | 2 Jan 19:57 2003

pycurl import problem with Python 2.2.2

When I attempt to import pycurl I get the following, 

Python 2.2.2 (#1, Nov 14 2002, 14:17:59) 
[GCC 2.95.3 20010315 (SuSE)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycurl
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: /usr/local/lib/python2.2/site-packages/pycurl.so: undefined
symbol: curl_multi_cleanup
>>> 

Pycurl 7.10.2 with Python 2.2.2. I've seen in the docs that it was built
for 2.2.1 but I don't think Python is the problem.

Also running the lastest libcurl,

root -> /usr/local/bin/ $ ./curl-config --version
libcurl 7.10.2

I suspect I have something config'd wonky but I can't really say what it
is. Any ideas?

Be well,

- Bryan

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
(Continue reading)

Henry | 2 Jan 20:34 2003
Picon

Re: Re: HTTPS certificates

On Sun, 29 Dec 2002, Daniel Stenberg wrote:

	>> I'm a novice programmer and SSL user however wish to write an app that uses
	>> the SSL feature in libcURL. I have the SimpleSSL.c and have compiled it and
	>> got it up and running, however at the moment i'm getting
	>> CURLE_SSL_CERTPROBLEM,/* 58 - problem with the local certificate */ .
	>> returned from the easy_perform. All the other functions of libcURL work
	>> fine so i know its just down to my lack of SSL knowledge. So if anyone
	>> could help me understand/direct how to generate:-

Ok I'm only getting the CURLE_SSL_CERTPROBLEM when i use the crypto engine. When i don't
and i use my own key i get an exception thrown (5, access denied).
	
	>> 1) pCertFile

	>The times I've needed client certificates I've converted one from my browser.
	>Export a certificate. Then use openssl to convert it to PEM format.

I have successfully used openssl to create my pem file, using switch:-

openssl pkcs12 -in henry.pfx -out henry.pem

This created me a pem file, with a rsa private key and a certificate inside it.

	>> 2) pCACertFile

	>There's a CA cert bundle included with curl releases. That should do for most
	>signed server certificates. If the server uses a self-signed certificate you
	>need to get a CA cert from that somehow. I don't know how to do that.

(Continue reading)

Combes, Chris M. | 3 Jan 17:14 2003

aclocal woes

What changed between curl-7.9.8 and curl-7.10.2 to cause an
error with aclocal?

I installed 'automake' which contains the aclocal program,
but I still get an error.

I'm compiling on HP-UX.

Any help appreciated.

Chris

make

cp -f curl-7.10.2/libtool.HP-UX.B.11.00 curl-7.10.2/libtool
touch -r curl-7.10.2/libtool.HP-UX.B.11.00 curl-7.10.2/libtool
cp -f curl-7.10.2/config.log.HP-UX.B.11.00 curl-7.10.2/config.log
touch -r curl-7.10.2/config.log.HP-UX.B.11.00 curl-7.10.2/config.log
cp -f curl-7.10.2/config.status.HP-UX.B.11.00 curl-7.10.2/config.status
touch -r curl-7.10.2/config.status.HP-UX.B.11.00
curl-7.10.2/config.status
cp -f curl-7.10.2/Makefile.HP-UX.B.11.00 curl-7.10.2/Makefile
touch -r curl-7.10.2/Makefile.HP-UX.B.11.00 curl-7.10.2/Makefile
cp -f curl-7.10.2/docs/Makefile.HP-UX.B.11.00 curl-7.10.2/docs/Makefile
touch -r curl-7.10.2/docs/Makefile.HP-UX.B.11.00
curl-7.10.2/docs/Makefile
cp -f curl-7.10.2/include/Makefile.HP-UX.B.11.00
curl-7.10.2/include/Makefile
touch -r curl-7.10.2/include/Makefile.HP-UX.B.11.00
curl-7.10.2/include/Makefile
(Continue reading)

matthew b | 3 Jan 05:55 2003
Picon

CURL minor Win32 fixes

Hello again...

I've been using libcurl for a bit longer. Drove myself nuts for a while with 
some trivial errors in my code, but now everything seems to be stable, I'm 
happy. While debugging I ran into a few problems.

1. On Windows, the debug dll doesn't have symbols. A simple change to the 
makefile will write out a symbol file. The lflagssl line was also missing in 
one place. Diff below.

This will change two things: the DLL gets slightly larger (add /opt:ref 
/opt:noicf to the link command line to turn the 'throw away useless stuff' 
options back on) and a PDB file gets generated with all the symbolic 
information a debugger needs.

2. When verbose mode is on, reconnects caused a crash (dereferencing a null 
pointer). This looks fixed in 7.10.3-pre3.

3. On Windows, you can't pass a FILE * across DLL boundaries as noted 
elsewhere. Unfortunately, this seems to be the ony way you can change 
CURLOPT_STDERR. Is there another way? If not, a new new option passing a 
filenames (then open the file "a+") would be cool, or better make sure 
everything goes through CURLOPT_DEBUGFUNCTION (not quite everything does).

4. On Windows, main.c 7.10pre3 won't build because of some missing unix APIs 
in create_dir_hierarchy. I 'fixed' the build with some win32 code but 
haven't tested it; if you're interested let me know (and what I should do to 
test it.). I haven't tested the new build at all yet.

5. The base64 decoding fix has some tabs in it from my stupid editor; I 
(Continue reading)

Daniel Stenberg | 5 Jan 18:01 2003
Picon

Re: Partial GETS

On Mon, 30 Dec 2002, Charles wrote:

> HTTP 1.1 supports a way to get only parts of a file specifying a
> byte-range, does CURL support this ?

Yes, see CURLOPT_RANGE.

--

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

Global cache possible bug?


I was reading some code concerning the glabal cache and I saw something that 
maybe lead to a little bug. 

When we set CURLOPT_DNS_CACHE_TIMEOUT to a handle it do that:

      int use_cache = va_arg(param, int);
      if (use_cache) {
        Curl_global_host_cache_init();
      }

      data->set.global_dns_cache = use_cache;

and we use global_dns cache only in Curl_global_host_cache_use, this function 
is only used just before calling Curl_perform ( for multi_perform it's 
different but I think this bug will be here too ) and the code look like 
this:

if (!data->hostcache) {
    if (Curl_global_host_cache_use(data)) {
      data->hostcache = Curl_global_host_cache_get();
    }
    else {
      data->hostcache = Curl_hash_alloc(7, Curl_freednsinfo);
    }
  }

it seem okay but In the case of the first time we called perform without the 
CURLOPT_DNS_CACHE_TIMEOUT, and we set after the perform the 
CURLOPT_DNS_CACHE_TIMEOUT option, It seem that at the beginning of the 
(Continue reading)

share implementation


(a copy of this message has been sent to libcurl mailing list)

I saw in the sharing documentation text (http://curl.haxx.se/dev/sharing.txt) 
this text:

 * libcurl guarantees to never lock more than one mutex at any single moment,
 * from within the same thread.

and for respecting this sentence there is this code in the 
Curl_share_acquire_lock function : 
----------------------
if (CURL_SHARE_IS_LOCKED (share, type)) {
    return SHARE_ERROR_OK;
  }

share->lockfunc (handle, type, share->clientdata);
  CURL_SHARE_SET_LOCKED (share, type);
--------------------

CURL_SHARE_IS_LOCKED is a define:
#define CURL_SHARE_IS_LOCKED(__share, __type) ((__share)->locked & (__type))

but if I'm not mistaken this thing remove all the locking advantage we are 
trying to get. The __share->locked variable is not protected by a mutex, so 
between the moment the locked variable was tested and when the moment we 
change his value, an another thread may change his value and lock it at the 
same time that we do it.

In the perspective we are giving an API to permit the user to make libcurl 
(Continue reading)

Sterling Hughes | 6 Jan 05:34 2003

Re: share implementation

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> (a copy of this message has been sent to libcurl mailing list)
> 
> I saw in the sharing documentation text (http://curl.haxx.se/dev/sharing.txt) 
> this text:
> 
>  * libcurl guarantees to never lock more than one mutex at any single moment,
>  * from within the same thread.
> 
> and for respecting this sentence there is this code in the 
> Curl_share_acquire_lock function : 
> - ----------------------
> if (CURL_SHARE_IS_LOCKED (share, type)) {
>     return SHARE_ERROR_OK;
>   }
> 
> share->lockfunc (handle, type, share->clientdata);
>   CURL_SHARE_SET_LOCKED (share, type);
> - --------------------
> 
> CURL_SHARE_IS_LOCKED is a define:
> #define CURL_SHARE_IS_LOCKED(__share, __type) ((__share)->locked & (__type))
> 
> but if I'm not mistaken this thing remove all the locking advantage we are 
> trying to get. The __share->locked variable is not protected by a mutex, so 
> between the moment the locked variable was tested and when the moment we 
> change his value, an another thread may change his value and lock it at the 
> same time that we do it.
(Continue reading)


Gmane