You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
Hello,
I want to use wkhtmltopdf to convert a web page behind a htaccess/htpasswd authentification wall. How to specify the login/password please ?
Thank you
Best regards
The text was updated successfully, but these errors were encountered:
I finally succeed by doing :
$sh='export PATH=$PATH:/usr/bin
wkhtmltopdf --log-level info --custom-header Authorization "Basic
'.base64_encode('admin:<mot de passe>').'" --custom-header-propagation
"<url>" <nom_fichier>.pdf';
file_put_contents('fiches_sh/'.$nom_fichier.'.sh',$sh);
chmod('fiches_sh/'.$nom_fichier.'.sh',0777);
exec('fiches_sh/'.$nom_fichier.'.sh 2>&1',$output);
Sylvain Ard
0549507724
0778380991
***@***.***
http://sylvain-ard.fr
Entreprise individuelle SIRET : 80079243400022
Appt 26 Bât A Résidence Le Patio
83 rue de la Bugellerie
86000 Poitiers
Le ven. 28 oct. 2022 à 23:14, Emmanuel B. ***@***.***> a
écrit :
Description
Hello,
I want to use wkhtmltopdf to convert a web page behind a htaccess/htpasswd authentification wall. How to specify the login/password please ?
Thank you
Best regards
The text was updated successfully, but these errors were encountered: