I'm curretly trying to make httpclient classes working for connecting to an HTTPS page.
I have adapted the test_http.php that is enclosed in the package to connect to http://mail.google.com/mail/feed/atom and retrieve the RSS feed.
Though I'm connecting to the internet through a proxy, it looks to be correctly configured because I can reach normal HTTP pages.
The point is that the page http://mail.google.com/mail/feed/atom redirects to https://mail.google.com/mail/feed/atom for consulting the RSS feed. Apparently, I did not configure correctly the httpclient class for connecting to any HTTPS page (I tried several). I am successfully redirected from HTTP to HTTPS page.
On any HTTPS page, here is the error I still cannot avoid :
500 Server Error
[code=PARENT_NEEDED] Unable to service this URL without parent cache.Contact your system administrator.
I could find only few information about this error.
What does it mean ? How can I fix it ? What did I miss ?
Thx 4 your help !!!
|2006-04-13 14:04:00 - In reply to message 1 from Matthieu Guénégo|
|Currently you cannot connect to a SSL remote server using some non-SSL HTTP proxy. That is considered insecure because the connection between the client and the proxy is not secure.|
The solution is to support the HTTP CONNECT method. However, that requires that the client knows how to dialog with proxy in SSL after that connection is establish.
I would need to study the subject further as most PHP versions are not able to start a SSL dialog after the connection is already established. For now I advise to try a different solution if you can.
|2006-04-18 19:06:29 - In reply to message 2 from Manuel Lemos|
|Thanks for your answer, Manuel.|
Finally, I changed my mailbox (Gmail was not compulsory, as I just need to check wether outgoing emails are correctly output from my network - there might likely be a dozen of sendmail relaies between my server's and the Internet) for a lower-secured one that alsoprovides RSS feeds.
Thus, I kept my first solution, which was an class extended from PEAR::HTTP_Client that allows HTTP redirections (HTTP Request doesn't). Overloading get and post methods made this little class supporting the proxy authentication (I found out that native HTTP_Client doesn't).
I'll likely share this tiny code on PHP Classes, once I'll get more used to this site and have some time.
Thanks again for your help !
|2006-04-18 19:20:25 - In reply to message 3 from Matthieu Guénégo|
|I am not sure what you mean. My HTTP protocol client supports redirections and proxy authentication. Or are you saying that PEAR classes do not support that?|
|2006-04-19 08:19:36 - In reply to message 4 from Manuel Lemos|
|Sorry for misunderstanding. I just meant that, before I find your httpclient classes on PHP classes network, I already had extended PEAR classes to almost suit my needs.|
I'm sure your class can do this very well too, I just got it after I made a first solution working.