I have a PDF converter button that works fine for http requests.
$this->url ='http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].str_replace(DIRECTORY_SEPARATOR , $relativePath , '/' );
However I need to make it work for a https request as well.
Any help would be appreciated.