Closed neerolyte closed 1 year ago
You're right. I did not think of that possibility because the Tika server does not support it natively. Fix is on the works...
Out of curiosity, how did you implement SSL, do you use a proxy?
I made a fix with last commit. Can you try using dev-master as version on your composer.json?. If it works, I will publish the changes as a new version...
Fixed on v1.2.5
Currently trying to make a client with a https server results in an exception e.g:
results in:
This is because
setUrl()
chucks away the scheme at https://github.com/vaites/php-apache-tika/blob/dd145e4e8d4595d3bde883b7b4bd0edecaa4df22/src/Clients/WebClient.php#L108-L124 meaninggetUrl()
always has to return a hard codedhttp
at https://github.com/vaites/php-apache-tika/blob/dd145e4e8d4595d3bde883b7b4bd0edecaa4df22/src/Clients/WebClient.php#L100-L103 .I have confirmed just changing the hard coded
http
tohttps
lets the client work correctly.