Re: [PHP] Problem with fsockopen and SSL

2006-01-09 Thread David Grant
Hi Barry, I'm not terrible au fait with the workings of SSL, but it strikes me as potentially problematic that you are communicating in plain text over an encrypted protocol. Might that be the problem? David Barry wrote: > Hi everyone! > > I want to connect to an SSL server but i can't get the

[PHP] Problem with fsockopen and SSL

2006-01-09 Thread Barry
Hi everyone! I want to connect to an SSL server but i can't get the content :( Here is the code i use: $xml = 'Hello!'; function PostToHost($host, $path, $referer, $data_to_send) { $fp = fsockopen($host, 443); printf("Open!\n"); fputs($fp, "POST $path HTTP/1.1\r\n\r\n"); fputs($fp, "Hos

[PHP] Re:RE: [PHP] problem with fsockopen ............

2003-08-18 Thread fongming
gt; To: [EMAIL PROTECTED] > Subject: [PHP] problem with fsockopen > > > Hi,Sir: > > Can I block cookies when I ftput headers ? > following is my fsockopen() scripts, > but it always send back "cookies". > Is there any way to prevent fro

RE: [PHP] problem with fsockopen ............

2003-08-18 Thread cyz
If you want to block the http headers sent back by the web server,use fopen() instead. > -Original Message- > From: fongming [mailto:[EMAIL PROTECTED] > Sent: Monday, August 18, 2003 11:29 PM > To: [EMAIL PROTECTED] > Subject: [PHP] problem with fsockopen

[PHP] problem with fsockopen ............

2003-08-18 Thread fongming
Hi,Sir: Can I block cookies when I ftput headers ? following is my fsockopen() scripts, but it always send back "cookies". Is there any way to prevent from it ? thanks - $fp = fsockopen ("XXX.XXX.XXX.XXX", 80, $errno, $errstr, 30); if (!$

[PHP] Problem with fsockopen() and fgetc()

2003-03-14 Thread Christos Nikolaou
I try to connect to a site via fsockopen function and get data calling a cgi on remote server using a script like this following. The response is a large amount of data up to 500Kb. But every 5000 characters approximately I get arbitrary strings like numbers "1400" and "800" and others like "7be"

[PHP] problem with fsockopen and lenght of fputs

2002-05-07 Thread Philippe
Hello everyone, I'm trying to send Email with fsockopen. It works fine but when the body of the message is superior to 8k. Then the fputs didn't work. I've read that the fputs had a buffer of 8k and we must use set_file_buffer to remove buffer. But it seems not to work on a fsockopen. Is there