Are you correctly formatting the HOST header?
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.23
Abraham Williams wrote:
I've been playing around using fsockopen to interact with the API but
I"m having issues getting ssl to work.
My understanding is the call should look something like this:
@fsockopen('ssl://twitter.com <http://twitter.com>', 443, $errno,
$errstr, $this->timeout) but it always returns a html 400 page. If i
drop the ssl:// and switch to port 80 it works fine. It is a GET call
to /help/test.xml.
Based on this comment [1] it sounds like Twitters servers don't know
how to handle it.
Has anybody else gotten fsockopen to work on ssl? I've been using the
HttpClient lib [2].
Abraham
[1] http://us3.php.net/manual/en/function.fsockopen.php#84599
[2] http://scripts.incutio.com/httpclient
--
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.