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 ?
Matthieu Guénégo - 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.
Matthieu Guénégo - 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.