| | |
This Virtual Directory requires a browser that supports the configured encryption opt
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jun 2008
Posts: 5
Reputation:
Solved Threads: 0
This Virtual Directory requires a browser that supports the configured encryption opt
0
#1 Jun 30th, 2008
I am new to using php for querying exchange server. I downloaded the class_http.php and class_xml.php. I am trying to run the example "Grab all properties for an item " given at http://www.troywolf.com/articles/php...s.php#allprops. I have modified the following variables in the example php script (exch3.php):
$exchange_server = "http://mail.msm.edu";
$exchange_username = "dkaur@msm.edu";
$exchange_password = "mypswd";
I have also configured apache to run ssl by creating a self signed certificate and encryption key.
When I run this file on https://localhost:24343/i2b2/exch3.php
I get the following output. Please suggest what am I doing wrong. Any help is highly appreciated.
"
stdClass Object
(
[HTML] => Array
(
[0] => stdClass Object
(
[HEAD] => Array
(
[0] => stdClass Object
(
[TITLE] => Array
(
[0] => stdClass Object
(
[_text] => Error
)
)
)
)
[BODY] => Array
(
[0] => stdClass Object
(
[HEAD] => Array
(
[0] => stdClass Object
(
[TITLE] => Array
(
[0] => stdClass Object
(
[_text] => Secure Channel Required
)
)
)
)
[BODY] => Array
(
[0] => stdClass Object
(
[H1] => Array
(
[0] => stdClass Object
(
[_text] => Secure Channel Required
)
)
[_text] => This Virtual Directory requires a browser that supports the configured encryption options.
)
)
)
)
)
)
)
"
My target is to query if a user is a valid user on exchange server, and get his name email id etc from exchange server.
Thanks,
Dkv.
$exchange_server = "http://mail.msm.edu";
$exchange_username = "dkaur@msm.edu";
$exchange_password = "mypswd";
I have also configured apache to run ssl by creating a self signed certificate and encryption key.
When I run this file on https://localhost:24343/i2b2/exch3.php
I get the following output. Please suggest what am I doing wrong. Any help is highly appreciated.
"
stdClass Object
(
[HTML] => Array
(
[0] => stdClass Object
(
[HEAD] => Array
(
[0] => stdClass Object
(
[TITLE] => Array
(
[0] => stdClass Object
(
[_text] => Error
)
)
)
)
[BODY] => Array
(
[0] => stdClass Object
(
[HEAD] => Array
(
[0] => stdClass Object
(
[TITLE] => Array
(
[0] => stdClass Object
(
[_text] => Secure Channel Required
)
)
)
)
[BODY] => Array
(
[0] => stdClass Object
(
[H1] => Array
(
[0] => stdClass Object
(
[_text] => Secure Channel Required
)
)
[_text] => This Virtual Directory requires a browser that supports the configured encryption options.
)
)
)
)
)
)
)
"
My target is to query if a user is a valid user on exchange server, and get his name email id etc from exchange server.
Thanks,
Dkv.
Re: This Virtual Directory requires a browser that supports the configured encryption
0
#2 Jul 1st, 2008
Is the exchange server on your localhost?
If it isn't then there was no need to configure apache accept ssl.
What I think is happening is the exchange server you're testing on requires SSL and your classes do not support SSL or your PHP build does not support SSL.
If it isn't then there was no need to configure apache accept ssl.
What I think is happening is the exchange server you're testing on requires SSL and your classes do not support SSL or your PHP build does not support SSL.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Re: This Virtual Directory requires a browser that supports the configured encryption
0
#3 Jul 1st, 2008
•
•
•
•
Is the exchange server on your localhost?
If it isn't then there was no need to configure apache accept ssl.
What I think is happening is the exchange server you're testing on requires SSL and your classes do not support SSL or your PHP build does not support SSL.
You don't need Apache to accept SSL since you're not making the SSL connection to Apache. The SSL connection is between your PHP script and the Exchange Server.
You'll need your PHP script to talk SSL to the exchange server.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
•
•
Join Date: Jun 2008
Posts: 5
Reputation:
Solved Threads: 0
Re: This Virtual Directory requires a browser that supports the configured encryption
0
#4 Jul 1st, 2008
•
•
•
•
Is the exchange server on your localhost?
If it isn't then there was no need to configure apache accept ssl.
What I think is happening is the exchange server you're testing on requires SSL and your classes do not support SSL or your PHP build does not support SSL.
Thanks
Dkv
•
•
Join Date: Jun 2008
Posts: 5
Reputation:
Solved Threads: 0
Re: This Virtual Directory requires a browser that supports the configured encryption opt
0
#5 Jul 2nd, 2008
I have configured my php.ini to support ssl. the following lines have been uncommenred:
extension=php_openssl.dll
extension=php_ldap.dll
the classes that I am using are class_http.php and class_xml.php from troy@troywolf.com and they seem to support ssl.
I still get this error
"
There is a problem with the http request!
New http() object instantiated.
--------------------------------
fetch() called
url: https://webmail.msm.edu/public/Email...-668992879.EML
getFromUrl() called
Could not open connection. Error 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
"
I tried this with
$exchange_server = "mail.msm.edu";
$exchange_server = "http://mail.msm.edu";
$exchange_server = "https://mail.msm.edu";
nothing works.
Please help.
Thanks,
Dkv
extension=php_openssl.dll
extension=php_ldap.dll
the classes that I am using are class_http.php and class_xml.php from troy@troywolf.com and they seem to support ssl.
I still get this error
"
There is a problem with the http request!
New http() object instantiated.
--------------------------------
fetch() called
url: https://webmail.msm.edu/public/Email...-668992879.EML
getFromUrl() called
Could not open connection. Error 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
"
I tried this with
$exchange_server = "mail.msm.edu";
$exchange_server = "http://mail.msm.edu";
$exchange_server = "https://mail.msm.edu";
nothing works.
Please help.
Thanks,
Dkv
Re: This Virtual Directory requires a browser that supports the configured encryption opt
0
#6 Jul 2nd, 2008
The error you're having seems to be the default in PHP when a socket connection attempt times out.
I'd like to suggest anotehr way of going about this:
Test out a socket connection you're trying to make with telnet before trying it with PHP.
I'm not familiar with the socket protocol exchange servers use. I thought they used plain old POP3 and SMTP but it seems the class you're using is trying to make a request for XML over HTTP?
Anway, whatever protocol is being used, try to take a look at the protocol specifications, or just a tutorial on how to test a service using that protocol with telnet to get a basic idea of whats happening on the network level.
That way, you can know what to expect when it comes to coding it with PHP. Using the library may make it more complicated then it is, unless you're already familiar with the protocol.
Basically, once you can telnet into the service, then doing the samewith PHP would be simple.
Here's an example of a simple HTTP Request with telnet:
The server at example.com with respond with the HTTP resource.
doing that with PHP:
Once you have your simple tests complete, it would then be easier to use the library since you know the service is not the problem...
If the service is HTTP, the shortcut would be to just use:
where $url is teh url of what you want. Then examine the response..
I'd like to suggest anotehr way of going about this:
Test out a socket connection you're trying to make with telnet before trying it with PHP.
I'm not familiar with the socket protocol exchange servers use. I thought they used plain old POP3 and SMTP but it seems the class you're using is trying to make a request for XML over HTTP?
Anway, whatever protocol is being used, try to take a look at the protocol specifications, or just a tutorial on how to test a service using that protocol with telnet to get a basic idea of whats happening on the network level.
That way, you can know what to expect when it comes to coding it with PHP. Using the library may make it more complicated then it is, unless you're already familiar with the protocol.
Basically, once you can telnet into the service, then doing the samewith PHP would be simple.
Here's an example of a simple HTTP Request with telnet:
PHP Syntax (Toggle Plain Text)
telnet example.com 80 <enter> GET /index.html HTTP/1.1 <enter> HOST: example.com <enter> <enter>
The server at example.com with respond with the HTTP resource.
doing that with PHP:
PHP Syntax (Toggle Plain Text)
<?php $fp = fsockopen('example.com', 80); fwrite($fp, 'GET /index.html HTTP/1.1'); fwrite("\n"); fwrite($fp, 'HOST: example.com'); fwrite("\n"); fwrite("\n"); while($response = fread($fp, 2082)) echo $response; fclose($fp); ?>
Once you have your simple tests complete, it would then be easier to use the library since you know the service is not the problem...
If the service is HTTP, the shortcut would be to just use:
PHP Syntax (Toggle Plain Text)
echo file_get_content($url);
where $url is teh url of what you want. Then examine the response..
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
•
•
Join Date: Jun 2008
Posts: 5
Reputation:
Solved Threads: 0
Re: This Virtual Directory requires a browser that supports the configured encryption opt
0
#7 Jul 3rd, 2008
![]() |
| Thread Tools | Search this Thread |
ajax apache api array basics beginner binary broken cakephp checkbox class cms code codingproblem combobox cron curl database date display domain dynamic echo email error file files folder form format forms function functions google href htaccess html image include insert interactive ip java javascript joomla js limit link load login mail malfunctioning menu mlm mobile multiple mysql nodes oop outofmemmory paging parse paypal pdf php problem procedure query radio ram random recursion reference remote return script search server sessions sms source space sql syntax system table tutorial unset up-to-date update upload url validation validator variable video web webapplications websitecontactform youtube






