htpps/ssl-requests not working over proxy
Status: Beta
Brought to you by:
huni
When trying to crawl a https/ssl-url over a defined proxy (setProxy), the proxy-server always responds "501 not implented".
This is due to the fact, that "CONNECT"-requests (instead og "GET"-requests) are not implemented yet.
Anonymous
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I write some code in file libs/PHPCrawlerHTTPRequset.class.php that worked for me
I created function that building http header for ssl handshake
and in function sendRequest() after this lines
paste this code
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I forgot... also need to change one line in function buildRequestHeader() under comment "A Proxy needs the full qualified URL in the GET or POST headerline."
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Hi!
What should i say, THANKS a lot for providing your code, great!
Will get implemented in the next release.
Thnks and cheers!
I had issues getting crawling SSL enabled websites through a proxy. I implemented the code above and it works wonderfully well for most SSL enabled websites. However, for some websites, I get the following error
PHP Warning: stream_socket_enable_crypto(): SSL/TLS already set-up for this stream in /home/vinay/phpcrawl/libs/PHPCrawlerHTTPRequest.class.php on line 410
PHP Warning: stream_socket_enable_crypto(): SSL/TLS already set-up for this stream in /home/vinay/phpcrawl/libs/PHPCrawlerHTTPRequest.class.php on line 410
PHP Warning: stream_socket_enable_crypto(): SSL/TLS already set-up for this stream in /home/vinay/phpcrawl/libs/PHPCrawlerHTTPRequest.class.php on line 410
Cannot secure connection
The website that this can error can be replicated on is https://moz.com/
Any ideas on what I can do to fix it?
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Same Problem as Vinay. Has anyone a solution?
IN PHPCrawlerHTTPRequest.class.php after
if ($this->proxy != null) {
I changed:
Worked for me
As someone who just tried CBD for the at the outset stretch, I be required to bring up I'm genuinely impressed! I've been hearing about CBD like [url=https://greenrevolutioncbd.com/cbd-products/water-soluble-cbd/ ]water soluble cbd oil[/url] in search a while on occasion, but I was a bit skeptical almost how it would feign me. I decided to evaluate a small administer of CBD oil to get a load of if it would relief with my dyed in the wool shoulder distress and desire, and the results were more positive than I anticipated.
The article on the [url=https://dailycaller.com/2024/07/05/the-best-cbd-gummies-for-pain-in-2024/ ]Best CBD Gummies For Pain[/url] was incredibly neighbourly exchange for navigating the substantial array of products available. It provided full reviews and comparisons, highlighting factors like potency, ingredients, and customer feedback. The involvement of pros and cons as a service to each product was particularly beneficial in making informed choices. Whether you're a late drug or looking to switch brands, this article offers valuable insights to oversee your CBD/THC gummy selection.