Answer the question
In order to leave comments, you need to log in
How to overcome The server name sent was not recognized (pycurl)?
Welcome all.
I stumbled upon a strange oddity. The python script crashes with a segmentation fault. As a result of the analysis, I came to the conclusion that this happens on sites using an SSL certificate in which their domain is not registered.
And it seems that the solution is obvious, turn off the check and it's ready, but for some reason this did not save me.
The script crashes with the message:
Process finished with exit code 139
Reduced the code as much as possible:
import pycurl
c = pycurl.Curl()
c.setopt(c.URL, 'http://bulllat.ru/')
c.setopt(pycurl.FOLLOWLOCATION, 1)
c.setopt(pycurl.SSL_VERIFYPEER, 0)
c.setopt(pycurl.SSL_VERIFYHOST, 0)
c.perform()
Answer the question
In order to leave comments, you need to log in
Add before c.perform():
PS More
correctly:
instead of:c.setopt(c.URL, 'http://bulllat.ru/')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question