joking Posted August 24, 2006 Share Posted August 24, 2006 Hi, I am having trouble connecting through fsockopen()here is the function:-------------------$socket = fsockopen('http://www.proactive.info', 80, &$errno, &$errstr, 30)$errno is returning 0 Is there anythg i should to make it work ? Plz help Link to comment https://forums.phpfreaks.com/topic/18531-plz-help-fsockopen-is-not-working/ Share on other sites More sharing options...
joking Posted August 24, 2006 Author Share Posted August 24, 2006 I just wanna add that i can connect tofsockopen('www.proactive.info', 80, &$errno, &$errstr, 30)But what i need to know is how can i connect to an HTTPS link ? PLZZZZZZZZZZZZZZZ HELP Link to comment https://forums.phpfreaks.com/topic/18531-plz-help-fsockopen-is-not-working/#findComment-79793 Share on other sites More sharing options...
hostfreak Posted August 24, 2006 Share Posted August 24, 2006 I am not sure, but have you read: http://www.php.net/manual/en/function.fsockopen.php ? Link to comment https://forums.phpfreaks.com/topic/18531-plz-help-fsockopen-is-not-working/#findComment-79794 Share on other sites More sharing options...
joking Posted August 24, 2006 Author Share Posted August 24, 2006 Yes i did. but still i didnt find anythg interresting regarding how to connect to an HTTPS link.Maybe the situation will be clearer if i explain my situation.I am trying to POST XML via HTTP for example i wanna post <request name=joe></request> to this link https://process.csc24seven.com/gateway/api.aspxThank u 4 ur help Link to comment https://forums.phpfreaks.com/topic/18531-plz-help-fsockopen-is-not-working/#findComment-79795 Share on other sites More sharing options...
hostfreak Posted August 24, 2006 Share Posted August 24, 2006 After searching google I found this:http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Windows/Q_21617212.htmlTry this:[code]$socket = fsockopen('ssl://www.proactive.info', 80, &$errno, &$errstr, 30)[/code] Link to comment https://forums.phpfreaks.com/topic/18531-plz-help-fsockopen-is-not-working/#findComment-79796 Share on other sites More sharing options...
joking Posted August 24, 2006 Author Share Posted August 24, 2006 I did try this be4 but also it didnt work.$errno is returning 0 and $socket is returning FALSEThis indicates that the error occurred before the connect() call. This is most likely due to a problem initializing the socket. <---- this is from php.net Link to comment https://forums.phpfreaks.com/topic/18531-plz-help-fsockopen-is-not-working/#findComment-79798 Share on other sites More sharing options...
joking Posted August 24, 2006 Author Share Posted August 24, 2006 I really need help here...plz anyone Link to comment https://forums.phpfreaks.com/topic/18531-plz-help-fsockopen-is-not-working/#findComment-79845 Share on other sites More sharing options...
True`Logic Posted August 24, 2006 Share Posted August 24, 2006 i believe https is port 81.. or port +80... cant remember off hand Link to comment https://forums.phpfreaks.com/topic/18531-plz-help-fsockopen-is-not-working/#findComment-79874 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.