Some URLS produce gnutls_handshake() failed: Illegal parameter error, but others do not
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pycurl (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
#I wrote a script that can turn on and off the crashing behavior of gnutls. Hopefully this will help someone debug it. Using curl #from the command line on the same machine fetches the URL's okay, so it seems like a pycurl thing... Many thanks to the devs!
#!/usr/bin/python
import pycurl
c = pycurl.Curl()
# Uncomment this one and it will crash gnutls
#c.setopt(c.URL, 'https:/
# Uncomment this one and it will crash gnutls
c.setopt(c.URL, 'https:/
# This url will work if you uncomment it
#c.setopt(c.URL, 'https:/
print("About to go to TDAmeritrade (and crash)")
c.perform()
#curl 7.35.0 (x86_64-
#Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp
#Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
#python-pycurl version 7.19.3-0ubuntu
#
I've tested all of these urls against pycurl 7.19.5-2ubuntu1 which should be uploaded to Utopic as soon as the FFE is approved. None of them have any trouble. If you notice the problem again when the new version is available, please re-open this bug.