cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: GnuTLS recv error (-9): A TLS packet with unexpected length was received. - with Paypal Website Payment Pro

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 1 Feb 2011 11:52:38 +0100 (CET)

On Mon, 31 Jan 2011, Zachary Krebs wrote:

> I looked here first: http://curl.haxx.se/mail/lib-2010-06/0169.html and did
> not find a resolution.

In that thread I clearly asked the person to contact the GnuTLS team to see if
they could help out as it seems to me like the problem migth exist in there.

My advice was obviously mostly ignored. At least the thread died at that
point. A common problem with people asking for help is that they never follow
through and actually present the solution in the end.

Left for the world is then only questions and problem statements.

> Ubuntu 10.04 32-bit
> libcurl 7.19.7
> PHP 5.2.16 with Suhosin-Patch 0.9.7 (cli) (built: Dec 25 2010 19:12:01)
> Copyright (c) 1997-2009 The PHP Group
> Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
> Drupal 6
> Nginx 0.9.3

Your GnuTLS version is also highly relevant.

> When I attempt to complete a payment, I get an error in my log:
> "GnuTLS recv error (-9): A TLS packet with unexpected length was received"

What if you use the regular curl command tool built with the same GnuTLS, does
that work against the same site?

> I searched all over Google, and another party stated "I will say this about
> the Paypal WPP service...I have been on it since it was available and find
> most (if not all) of our headache problems to be related to a dependency
> between some platform library and curl."

As you didn't find it on curl.haxx.se and you certainly did not find anyone
with any decent amount of libcurl knowledge saying something like that, it has
very little to no value at all for both you and us.

> Could someone point me in the right direction of getting this solved,
> perhaps I need to update a library or piece of software?

Perhaps, yes. But as we don't know what the problem is yet we can't really
tell.

> https://bugs.launchpad.net/gwibber/+bug/626023/comments/28%a0was also
> suggested, "The only way i managed to get rid of that error, was by
> recompiling libcurl with OpenSSL instead of GnuTLS and then recompiling
> python-pycurl against the new cURL library."

Of course, if you rebuild with another SSL library you will no longer suffer
from problems with GnuTLS... It doesn't make us actually find or fix the
problem though.

--
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-01