473,509 Members | 3,543 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 9548
sandeepsandeep
50 New Member
change the line in php.ini and restart the server
;extension=php_openssl.dll to extension=php_openssl.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_openssl.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_extensions 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_extensions 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
3448
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...
16
60579
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...
1
1877
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...
1
4866
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
14583
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...
4
2745
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...
0
1640
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...
0
1163
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
7924
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,...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
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...
0
7347
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,...
1
7073
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...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5062
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...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1571
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 ...
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.