473,666 Members | 2,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I veiw HTTPS headers in PHP5?

14 New Member
I am using PHP5.2.5. I am trying to view headers from an SSL site using the following:
[PHP]
error_log(print _r(get_headers( 'https://urltoserver/file.fdf')));
[/PHP]

I continue to get the following error:
Expand|Select|Wrap|Line Numbers
  1. PHP Notice:  get_headers() [<a href='function.get-headers'>function.get-headers</a>]: Unable to find the wrapper &quot;https&quot; - did you forget to enable it when you configured PHP?
  2.  
  3. [28-Jan-2008 09:45:06] PHP Warning:  get_headers() [<a href='function.get-headers'>function.get-headers</a>]: This function may only be used against URLs. 
  4.  
So what do I need to do to use get_headers()?
Jan 28 '08 #1
4 9556
sandeepsandeep
50 New Member
change the line in php.ini and restart the server
;extension=php_ openssl.dll to extension=php_o penssl.dll
in php.ini file.
simply remove ";" char.

Thanks,
Sandeep Agrawal
Jan 28 '08 #2
Harmony504
14 New Member
change the line in php.ini and restart the server
;extension=php_ openssl.dll to extension=php_o penssl.dll
in php.ini file.
simply remove ";" char.

Thanks,
Sandeep Agrawal
I did that. It still doesn't work.
Jan 28 '08 #3
Harmony504
14 New Member
I used get_loaded_exte nsions to see if the openssl dll was loaded and it is not. I did uncomment this in the php.ini and I restarted Apache. Is there something else I can do to load this dll? I chan't use dl() becuase of threading.

Thanks
Jan 28 '08 #4
Harmony504
14 New Member
I used get_loaded_exte nsions to see if the openssl dll was loaded and it is not. I did uncomment this in the php.ini and I restarted Apache. Is there something else I can do to load this dll? I chan't use dl() becuase of threading.

Thanks
You were right. It works when openssl is loaded. Apache was not actually restarting for me before so my change to load openssl never took place. Now it is working.

THANKS!
Jan 29 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3456
by: Phillip | last post by:
Hi. I'm having some anoying trouble trying to establish a https connection. I've even switched Python Versions (from 2.2.3 to 2.3.3), but the Errors remain basically the same, allthough they now come in nice XML :-). Here are some examples: My last desperate try (which is way off the book): >>> import re
16
60600
by: Paul Sweeney | last post by:
Does anyone know of a working (python) https proxy which allows viewing of unencrypted data being sent from my browser to an https site? I've worked my way through most on the list at http://xhaus.com/alan/python/proxies.html, but while many claim to support https, if you actually point your browser at the proxies, they work fine for http, but not for https pages. TIA
1
1889
by: Hasan D | last post by:
I'm new on this httplib and urllib. Actually I dont know what should i use. I want to fill the form in a "https" page , and return the result . I write a test code but always gives errors. I cant find any good example about this on the net. What should I do about this ? import urlparse,urllib,httplib,string,htmllib,formatter #port="443"
1
4878
by: Michele Simionato | last post by:
Can somebody provide an example of how to retrieve a https url, given username and password? I don't find it in the standard documentation. TIA, Michele Simionato
2
14595
by: administrator | last post by:
Hello I have a problem with Soap class in PHP5. I'm trying to connect to webservice (I have links, login, password etc.) Wsdl file, which the soapclient takes from webservice address forces the communication through https (section port in wsdl). Is this connect possible with php5 soap class ? Mabye I must install other components (for example nuSOAP) ? In my simple example I obtained this message:
4
2752
by: Chuck Anderson | last post by:
I am trying to install Php5 on my WindowsXP machine (at home, not on the 'net). I downloaded the Php Windows binary at php.net, unzipped it to c:/Php5, changed my Apache config file to use Php5 with: LoadModule php5_module "c:/Php5/php5apache2.dll" .... and restarted apache (Apache/2.0.55 (Win32) mod_ssl/2.0.55 OpenSSL/0.9.8a) Php5 works fine, but when I execute phpinfo, the registered streams are:
0
1697
by: Chuck Anderson | last post by:
How do you make Php be able to open secure streams (see "Registered PHP streams" in the first block of phpinfo() output). I run WAMP on my home PC (Windows XP Pro - Apache 2.0.5.5 - MySQL - and Php 4.4.1-pl1). I struggled with this with Php4. I installed OpenSSL, but that was not enough. Finally, I downloaded and unzipped xampp, copied the php folder (that's the Php4.4.1-pl1 I am now using) and there they were. I have a script that...
0
1172
by: ashish | last post by:
Hi , I want to send HTTPs put request to the server .Can any one help me how to do that . I am using this code import httplib from group import *
5
7950
by: Chuck Anderson | last post by:
I run Apache 2.0.55, and Php (both 4.4.1 and 5.2.5) on my home PC (Windows XP). One of the scripts that I run daily needs to access a secure URL (https://..............). When I am running Php4, it can open the file. However, when I run Php5 I (now) get this error message: "Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?" This is new. Last time I messed with this, I merely got:
0
8363
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8883
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8787
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8561
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6203
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.