Jump to content


Photo

PLZ HELP ! fsockopen is not working


  • Please log in to reply
7 replies to this topic

#1 joking

joking
  • Members
  • PipPip
  • Member
  • 29 posts
  • LocationLebanon

Posted 24 August 2006 - 11:41 AM

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

Just JoKinG

#2 joking

joking
  • Members
  • PipPip
  • Member
  • 29 posts
  • LocationLebanon

Posted 24 August 2006 - 11:47 AM

I just wanna add that i can connect to
fsockopen('www.proactive.info', 80, &$errno, &$errstr, 30)

But what i need to know is how can i connect to an HTTPS link  ?

PLZZZZZZZZZZZZZZZ HELP

Just JoKinG

#3 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 24 August 2006 - 11:57 AM

I am not sure, but have you read: http://www.php.net/m...n.fsockopen.php ?

#4 joking

joking
  • Members
  • PipPip
  • Member
  • 29 posts
  • LocationLebanon

Posted 24 August 2006 - 12:01 PM

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.csc2...ateway/api.aspx

Thank u 4 ur help
Just JoKinG

#5 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 24 August 2006 - 12:02 PM

After searching google I found this:
http://www.experts-e...Q_21617212.html

Try this:

$socket = fsockopen('ssl://www.proactive.info', 80, &$errno, &$errstr, 30)


#6 joking

joking
  • Members
  • PipPip
  • Member
  • 29 posts
  • LocationLebanon

Posted 24 August 2006 - 12:08 PM

I did try this be4 but also it didnt work.

$errno is returning 0 and $socket is returning FALSE

This 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
Just JoKinG

#7 joking

joking
  • Members
  • PipPip
  • Member
  • 29 posts
  • LocationLebanon

Posted 24 August 2006 - 02:30 PM

I really need help here...
plz anyone
Just JoKinG

#8 True`Logic

True`Logic
  • Members
  • PipPipPip
  • Advanced Member
  • 59 posts

Posted 24 August 2006 - 03:22 PM

i believe https is port 81.. or port +80... cant remember off hand




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users