Re: [PHP] fsockopen in phpmailer and tls

2008-09-07 Thread Larry Brown
On Sat, 2008-09-06 at 14:53 -0400, Robert Cummings wrote: > On Sat, 2008-09-06 at 14:38 -0400, Larry Brown wrote: > > On Sat, 2008-09-06 at 14:06 -0400, Robert Cummings wrote: > > > On Sat, 2008-09-06 at 14:02 -0400, Larry Brown wrote: > > > > > > > > OK. So I broke down and re-created my mail se

Re: [PHP] fsockopen in phpmailer and tls

2008-09-06 Thread Robert Cummings
On Sat, 2008-09-06 at 14:38 -0400, Larry Brown wrote: > On Sat, 2008-09-06 at 14:06 -0400, Robert Cummings wrote: > > On Sat, 2008-09-06 at 14:02 -0400, Larry Brown wrote: > > > > > > OK. So I broke down and re-created my mail server due to its age. I > > > am > > > now running the latest sendma

Re: [PHP] fsockopen in phpmailer and tls

2008-09-06 Thread Larry Brown
On Sat, 2008-09-06 at 14:06 -0400, Robert Cummings wrote: > On Sat, 2008-09-06 at 14:02 -0400, Larry Brown wrote: > > > > OK. So I broke down and re-created my mail server due to its age. I > > am > > now running the latest sendmail and it is still failing. The message > > in > > the sendmail l

Re: [PHP] fsockopen in phpmailer and tls

2008-09-06 Thread Robert Cummings
On Sat, 2008-09-06 at 14:02 -0400, Larry Brown wrote: > > OK. So I broke down and re-created my mail server due to its age. I > am > now running the latest sendmail and it is still failing. The message > in > the sendmail log is > > "...] did not issue MAIL/EXPN/VRFY/ETRN during > connection t

Re: [PHP] fsockopen in phpmailer and tls

2008-09-06 Thread Larry Brown
On Fri, 2008-09-05 at 00:58 -0400, Robert Cummings wrote: > On Thu, 2008-09-04 at 23:20 -0400, Larry Brown wrote: > > I am having a ball of a time trying to figure this one out... If anyone > > has dealt with this before I'd love to get some morsels of wisdom from > > you... > > > > I am trying to

Re: [PHP] fsockopen in phpmailer and tls

2008-09-04 Thread Robert Cummings
On Thu, 2008-09-04 at 23:20 -0400, Larry Brown wrote: > I am having a ball of a time trying to figure this one out... If anyone > has dealt with this before I'd love to get some morsels of wisdom from > you... > > I am trying to connect to a postfix server I have set up remotely using > smtp auth

Re: [PHP] fsockopen + fputs

2008-05-18 Thread Stut
On 16 May 2008, at 00:04, debussy007 wrote: I use fsockopen and fputs to call a distant URL, but I have the following error : The requested URL /registration/test was not found on this server. This is my code: $req = 'username=' . $usr . '&password=' . $pass . '&date_of_birth=

Re: [PHP] fsockopen + fputs

2008-05-16 Thread Nathan Rixham
debussy007 wrote: Hello, I use fsockopen and fputs to call a distant URL, but I have the following error : The requested URL /registration/test was not found on this server. This is my code: $req = 'username=' . $usr . '&password=' . $pass . '&date_of_birth=' . $year . "-" . $month . "-"

Re: [PHP] fsockopen + fputs

2008-05-16 Thread Per Jessen
debussy007 wrote: > However the path www.example.com/registration/test exists > so why does it says it cannot find the requested url ? > > Any idea ? Thank you for any help !! Take a look at the accesslog on www.example.com - that'll tell you what's happening. /Per Jessen, Zürich -- PHP Gene

Re: [PHP] fsockopen problems

2007-06-22 Thread Ray
On Friday 22 June 2007 10:59 am, Tijnema wrote: > On 6/22/07, Ray <[EMAIL PROTECTED]> wrote: > > hello, > > I'm having some problems with fsockopen and was hopping for some help. > > I try to connect to a host via fsockopen and I get "getaddrinfo failed" > > errors, but if I try fsockopen with goog

Re: [PHP] fsockopen problems

2007-06-22 Thread Tijnema
On 6/22/07, Ray <[EMAIL PROTECTED]> wrote: hello, I'm having some problems with fsockopen and was hopping for some help. I try to connect to a host via fsockopen and I get "getaddrinfo failed" errors, but if I try fsockopen with google, everything works. sample test code $fp=fsockopen('apps.su

Re: [PHP] fsockopen - how can I specify the local/source port

2007-04-18 Thread Richard Lynch
On Wed, April 18, 2007 5:48 am, Matt wrote: > I am experimenting with the fsockopen function to send custom UDP > packets. > What I would like to do is to be able to nominate the LOCAL port that > my UDP > packet originates from. What happens currently is that when I execute > my > code below I get

Re: [PHP] fsockopen error messages

2006-11-06 Thread Philip Thompson
Ok, since my last post, I have slapped myself on the wrist. I made a newbie mistake. The function that I send the host, port, etc to was in the wrong order from an older version of the function I had. So... the port was "MSIE..." instead of "80". Way to go me! =\ Thanks Richard. ~Philip

Re: [PHP] fsockopen error messages

2006-11-06 Thread Richard Lynch
Depending on your php.ini settings, it may be set up to wait FOREVER for a socket to open... What $host? What $port? Is it public? Private? Is there any authentication scheme in place? We've got nothing to work with here to help you... On Mon, November 6, 2006 2:58 pm, Philip Thompson wrote: >

Re: [PHP] fsockopen, openssl error

2006-01-20 Thread Richard Lynch
On Fri, January 20, 2006 7:38 am, James Benson wrote: > Im running into the followng error when trying to use fsockopen with > the > openssl extension, > > > > Warning: fsockopen(): php_stream_sock_ssl_activate_with_method: failed > to create an SSL context > > Warning: fsockopen(): failed to activ

Re: [PHP] Fsockopen error

2005-11-02 Thread Jochem Maas
still no info on what your version of php etc. but that output gives the impression it may not be the OS after all... are you able to recompile php? (using the --no-ipv6 flag or whatever it mentioned in the original php error message you posted). I have no idea how 'invalid' certificates are ha

Re: [PHP] Fsockopen error

2005-11-02 Thread Robert Prentice
I get this error: wget -d -v --delete-after https://www.safetrustprocessing.com Setting --verbose (verbose) to 1 Setting --delete-after (deleteafter) to 1 DEBUG output created by Wget 1.10.1 (Red Hat modified) on linux-gnu. --17:15:16-- https://www.safetrustprocessing.com/ => `index.

Re: [PHP] Fsockopen error

2005-11-02 Thread Jochem Maas
Robert Prentice wrote: Even if i change it back to 443 i still get the error. take another look at your initail error message... it indicates a problem related to the machines nameserver/dns setting (specifically IPv6). I'm willing to bet it's nothing to do with php - your OS seems to at fault

Re: [PHP] Fsockopen error

2005-11-02 Thread Robert Prentice
Even if i change it back to 443 i still get the error. Robert On Nov 2, 2005, at 9:54 AM, Jochem Maas wrote: Terence wrote: Robert Prentice wrote: snip $reply = http_post("https://www.safetrustprocessing.com";, 80, "/ Isnt https supposed to run on port 443? (or other than 80) Just a gue

Re: [PHP] Fsockopen error

2005-11-02 Thread Jochem Maas
Terence wrote: Robert Prentice wrote: snip $reply = http_post("https://www.safetrustprocessing.com";, 80, "/ Isnt https supposed to run on port 443? (or other than 80) Just a guess that is the default, but any port is allowed technically ... although putting port 80 under SSL is probabl

Re: [PHP] Fsockopen error

2005-11-02 Thread Terence
Robert Prentice wrote: snip $reply = http_post("https://www.safetrustprocessing.com";, 80, "/ Isnt https supposed to run on port 443? (or other than 80) Just a guess xml_order_processing.php", array("myXml" => $xml)); function http_post ($server, $port, $url, $vars) { -- PHP General Mai

Re: [PHP] fsockopen and session_start

2005-03-08 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* It works now. Thanks Jason. I had never realized that once $_SESSION is set, and if you are not going to modify it, the session could be closed. It does not seem a good programming practice, thou. On Tuesday 08 March 20

Re: [PHP] fsockopen and session_start

2005-03-07 Thread Jason Wong
On Monday 07 March 2005 22:02, Pedro Garre wrote: > I am using fsockopen to simulate a POST to another page (test_post.php) > within the same server. It's not clear how exactly you're executing your code. I suspect that you haven't closed the session before doing your simulated POST. Your order

Re: [PHP] fsockopen: fetching url

2005-02-13 Thread Bostjan Skufca @ domenca.com
HTTP 1.0 does not support virtual hosts. B. On Friday 11 February 2005 18:04, [EMAIL PROTECTED] wrote: > I'm using code below to fetch content from the url. > This code was worked properly on two servers I tested but it want worked on > the > designated one, so after getting error message I

Re: [PHP] fsockopen: fetching url

2005-02-11 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > > I'm using code below to fetch content from the url. > This code was worked properly on two servers I tested but it want worked > on > the > designated one, so after getting error message I figure it out it may > be php.ini settings limitation >

Re: [PHP] fsockopen

2005-02-02 Thread Bostjan Skufca @ domenca.com
Last two examples are fine as connection is obviously established, it is the communication with server that is causig an error. Read http protocol documentation. You do not want such a degree of control over communication you can just use file_get_contents($url); where $url is "http(s)://your.

Re: [PHP] fsockopen

2005-02-01 Thread Richard Lynch
pete M wrote: > am not having a lot of success with opening a socket to a secure domain > (php 4.3.8 - apache - openSSL) > > $fp = fsockopen($url , 443 ,$errno, $errstr, 30); You would need to do S much work to get this going, generating complementary two-way encryption keys... Just use curl:

Re: [PHP] fsockopen to own server

2004-12-22 Thread Doc
Thanks for your (and everyone else's) help so far. I've given up on this. Got another one off the web which uses pop3 and mail() to achieve the same thing. Thanks anyway Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fsockopen to own server

2004-12-20 Thread Richard Lynch
Doc wrote: > On Mon, 20 Dec 2004 07:51:46 -0800, Richard Lynch wrote: >> >> WILD GUESS ALERT! >> >> What you got in /etc/hosts.allow and /etc/hosts.deny?... > > nothing in there other than default install comments. > >> Or any kind of other anti-bad-guy technology?... > > nope. > >> Does it work if

Re: [PHP] fsockopen to own server

2004-12-20 Thread Doc
On Mon, 20 Dec 2004 07:51:46 -0800, Richard Lynch wrote: > > WILD GUESS ALERT! > > What you got in /etc/hosts.allow and /etc/hosts.deny?... nothing in there other than default install comments. > Or any kind of other anti-bad-guy technology?... nope. > Does it work if you use 127.0.0.1 for t

Re: [PHP] fsockopen to own server

2004-12-20 Thread Richard Lynch
Doc wrote: >> not sure what you are trying to do but it sounds like you are using unix >> domain sockets where you should be using tcp. That's why it might work >> on one machine (where web and imap are both installed) and not on the >> other where you only have the web server but the imap server i

Re: [PHP] fsockopen to own server

2004-12-20 Thread Doc
On Thu, 16 Dec 2004 23:37:36 +0600, Raditha Dissanayake wrote: > >> Escape character is '^]'. >>* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS AUTH=LOGIN] >>serverip IMAP4rev1 2003.339-cpanel at Wed, 15 Dec 2004 >>19:33:27 + (GMT) >> >>so I don't think it's the firewall. >> > usually a good idea

Re: [PHP] fsockopen to own server

2004-12-20 Thread Doc
On Thu, 16 Dec 2004 10:02:02 -0800, Richard Lynch wrote: > Doc wrote: >> I'm having a problem with fsockopen and was wondering has anyone ever >> noticed a case where it will work from machine1 (dev machine) to machine2. >> But when the was placed onto machine2 it wouldn't work connecting to it's

Re: [PHP] fsockopen to own server

2004-12-16 Thread Richard Lynch
Doc wrote: > I'm having a problem with fsockopen and was wondering has anyone ever > noticed a case where it will work from machine1 (dev machine) to machine2. > But when the was placed onto machine2 it wouldn't work connecting to it's > own ip address; > > when connecting via telnet it returns: >

Re: [PHP] fsockopen to own server

2004-12-16 Thread Raditha Dissanayake
Doc wrote: Hello. I'm having a problem with fsockopen and was wondering has anyone ever noticed a case where it will work from machine1 (dev machine) to machine2. happens all the time :-) But when the was placed onto machine2 it wouldn't work connecting to it's own ip address; when connecting

Re: [PHP] fsockopen https problem

2004-12-13 Thread Richard Lynch
Maycon de Oliveira wrote: > Hi, i have problem in my script, this error is Permission Danied (13) > > > $host = "193.132.139.36"; > > $port = 443; > > $path = "/gatekeeper/ink/quexry.asp"; //or .dll, etc. for authnet, etc. > > $fp = fsockopen("https://".$host, $port, $errno, $errstr, $timeout = 10

RE: [PHP] fsockopen connection error on IIS[Scanned]

2004-03-31 Thread Michael Egan
Problem solved. It seems there was a proxy server involved which was screwing things up. Regards, Michael Egan > -Original Message- > From: Michael Egan > Sent: 31 March 2004 14:20 > To: PHP General (E-mail) > Subject: [PHP] fsockopen connection error on IIS[Scanned] > > > Hello all,

Re: [PHP] fsockopen and HTTP 1.1 Problem

2004-03-25 Thread Chris Shiflett
--- Mooki <[EMAIL PROTECTED]> wrote: > I am using these to get the code of a page that is listed in the code > below. I am using the example code of fsockopen on php.net as > reference. > > I can get the response header but i have a problem with the CHUNKs. I can show you how to deal with chunke

Re: [PHP] fsockopen and HTTP 1.1 Problem

2004-03-25 Thread Richard Davey
Hello Mooki, Thursday, March 25, 2004, 12:26:27 PM, you wrote: M> I am using these to get the code of a page that is listed in the code M> below. I am using the example code of fsockopen on php.net as reference. M> I can get the response header but i have a problem with the CHUNKs. You could sav

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > Application --> Web Browser/Web Server > Presentation --> HTTP/HTTPS/SSL and language (HTML/JavaScript, etc). > Session --> Browser-Server connection, etc. > Transport --> Port 80/Port 443, packet transfer control, etc. > Network --> IP Address/Intern

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
> Why not delete that part of the 3rd party code then? Or send your Location > header before you call it? Curl won't help you here, for the same reasons > that fsockopen won't work. Not sure about deleting the part of the 3rd party code though, I had thought about it alot and I had been itching for

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
> > Sigh! Well, I guess all web browsers suck at it by the way! > Suck at what exactly? Not suck at receiving the HTTP commands from the webserver but suck at not receiving the HTTP commands from the PHP. :-) I understand how the browser/webserver communication work so no wonder why it doesn't w

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > Sigh! Well, I guess all web browsers suck at it by the way! Suck at what exactly? > Michal Migurski from other posting had explained that fsockopen() > do the TCP stuff or the Transport Layer. So, no wonder fsockopen() > can't get to the Network la

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Michal Migurski
>And finally, for those of you who are dying to know the answer to why I >can't use the header(). It's the 3rd party coding that contain the code, > >--snip-- >if(headers_sent()) >$this->Error(' '); >--snip-- Why not delete that part of the 3rd party code then? Or send your Location head

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
See the reply to the Chris Shiflett's reply... "Michal Migurski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >In plain english, can't use the header("Location: "), so have to use > >the fsockopen() instead. Just that header() is not allowed, don't ask me > >why. Just couldn'

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
Boy! Everyone here is itching for an answer!!! :-) Sigh! Well, I guess all web browsers suck at it by the way!! Michal Migurski from other posting had explained that fsockopen() do the TCP stuff or the Transport Layer. So, no wonder fsockopen() can't get to the Network layer, like the IP Addr

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > In plain english, can't use the header("Location: "), so have to > use the fsockopen() instead. Just that header() is not allowed, don't > ask me why. I'm asking anyway. :-) You cannot (thank goodness) connect to a remote client with fsockopen()

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Michal Migurski
>In plain english, can't use the header("Location: "), so have to use >the fsockopen() instead. Just that header() is not allowed, don't ask me >why. Just couldn't get the browser perform the HTTP LOCATION event. >--snip-- >$host = "192.168.0.2"; >$port = 443; >$url_str = "ssl://www.whatever.c

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
In plain english, can't use the header("Location: "), so have to use the fsockopen() instead. Just that header() is not allowed, don't ask me why. Just couldn't get the browser perform the HTTP LOCATION event. It does work when using fsockopen() for HTTP POST or GET as stated in the http://us

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
In plain english, can't use the header("Location: "), so have to use the fsockopen() instead. Just that header() is not allowed, don't ask me why. Just couldn't get the browser perform the HTTP LOCATION event. It does work when using fsockopen() for HTTP POST or GET as stated in the http://us

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-22 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > I haven't found the right wording to spit out the HTTP scripts to > the web browser through the fsockopen. I feel certain that I can help you, but unfortunately I can't seem to understand your question at all. Please understand that I'm not trying to

RE: [PHP] fsockopen() errors.

2004-03-08 Thread Phil Ewington - 43 Plc
Hmm, added @ to fsockopen() function, still happens, can anyone shed any light on this? TIA Phil. > -Original Message- > From: Phil Ewington - 43 Plc [mailto:[EMAIL PROTECTED] > Sent: 08 March 2004 12:57 > To: Miguel J. Jiménez > Cc: PHP > Subject: RE: [PHP]

RE: [PHP] fsockopen() errors.

2004-03-08 Thread Phil Ewington - 43 Plc
Hi Miguel, I am giving it a test at the moment, thanks. -- Phil. > -Original Message- > From: Miguel J. Jiménez [mailto:[EMAIL PROTECTED] > Sent: 08 March 2004 12:29 > To: Phil Ewington - 43 Plc > Cc: PHP > Subject: Re: [PHP] fsockopen() errors. > > > Is it a

Re: [PHP] fsockopen() errors.

2004-03-08 Thread "Miguel J. Jiménez"
Is it an error or a warning? If it is a warning you can try use @ before fsockopen() to avoid echoing warning messages [EMAIL PROTECTED](...)]. -- Miguel J. Jiménez ISOTROL, S.A. (Área de Internet) Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA) [EMAIL PROTECTED] TLFNO. 955036800 ext. 111 --

RE: [PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
testing on another TLD, strange message for 'domain cannot be found', but hey life would be boring if everyone thought along the same lines :o) -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 30 September 2003 15:51 To: [EMAIL PROTECTED] Subject: Re: [PHP] fsoc

Re: [PHP] fsockopen()

2003-09-30 Thread Jason Wong
On Tuesday 30 September 2003 20:39, Phil Ewington - 43 Plc wrote: > Positive, I am deliberately using invalid domains to test how to catch > errors when users misspell their domain. Did you read that article (or are you aware of what it is about)? And what "invalid domains" have you tried? -- J

RE: [PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
Positive, I am deliberately using invalid domains to test how to catch errors when users misspell their domain. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 30 September 2003 12:01 To: [EMAIL PROTECTED] Subject: Re: [PHP] fsockopen() On Tuesday 30 September 2003

Re: [PHP] fsockopen()

2003-09-30 Thread Jason Wong
On Tuesday 30 September 2003 18:46, Phil Ewington - 43 Plc wrote: > I am having problems with fsockopen() and wondered if anyone else has > encountered this behaviour. My problem is that when connecting to an > invalid domain I cannot trap the errors. Have you checked that it is really an invalid

Re: [PHP] fsockopen server monitor

2003-09-28 Thread Cameron Metzke
Sorry about that . Its my first post, :( "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Cameron Metzke ([EMAIL PROTECTED]): > > Hi there, > > I have been trying to make a simple monitor script using fsockopen. here it > > is > > --Start Code- > > >

Re: [PHP] fsockopen server monitor

2003-09-28 Thread Curt Zirzow
* Thus wrote Cameron Metzke ([EMAIL PROTECTED]): > Hi there, > I have been trying to make a simple monitor script using fsockopen. here it > is > --Start Code- > > error_reporting(0); > include 'config.php'; > $domain = $_POST['domain']; > > [... unneeded code ...] > > // Http port c

Re: [PHP] fsockopen

2003-07-22 Thread Curt Zirzow
* Thus wrote Mike Migurski ([EMAIL PROTECTED]): > >> preg_match('/()/ms', $http_response, $html) > >> > >> ...puts it into $html[1]. Adjust to suit your local standards-compliance > >> practices. You can also look for everything after the first instance of > >> "\n\n". > > > >Thats assuming that th

Re: [PHP] fsockopen

2003-07-22 Thread Mike Migurski
>> preg_match('/()/ms', $http_response, $html) >> >> ...puts it into $html[1]. Adjust to suit your local standards-compliance >> practices. You can also look for everything after the first instance of >> "\n\n". > >Thats assuming that the person used the for the first >item. what bout extra space,

Re: [PHP] fsockopen

2003-07-22 Thread Curt Zirzow
* Thus wrote Mike Migurski ([EMAIL PROTECTED]): > >Is there a way to get fsockopen to suppress the header information it > >returns. I have no use for the crap, have no idea how to use a regexp to > >get it out of there (nor does anyone on this list it would seem either). > > preg_match('/()/ms',

RE: [PHP] fsockopen

2003-07-22 Thread Mike Migurski
>Is there a way to get fsockopen to suppress the header information it >returns. I have no use for the crap, have no idea how to use a regexp to >get it out of there (nor does anyone on this list it would seem either). preg_match('/()/ms', $http_response, $html) ...puts it into $html[1]. Adjust

RE: [PHP] fsockopen

2003-07-22 Thread Boaz Yahav
If you only need the HTML why don't you look up file() http://www.weberdev.com/get_example.php3?count=729 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. Share your code : http://addexample.weberdev.com -Original Message- From: Doug

Re: [PHP] fsockopen

2003-07-21 Thread Curt Zirzow
* Thus wrote Doug La Farge ([EMAIL PROTECTED]): > Is there a way to get fsockopen to suppress the header information it > returns. I have no use for the crap, have no idea how to use a regexp > to get it out of there (nor does anyone on this list it would seem > either). I have plenty of use f

RE: [PHP] fsockopen -> returning results from port 80, 8080 and 443 requests

2003-07-07 Thread Dave [Hawk-Systems]
any takers on this, before I give up and drop to curl for those types of requests? Dave >Creating a quick script where we can poll the services on a particular >server to >verify if they are running or not. this will be included in a larger scope >application once the details are worked out. > >

Re: [PHP] fsockopen and SSL

2003-06-07 Thread Philip Olson
[snip] > but I get following error: > > Warning: fsockopen() [function.fsockopen]: no SSL support in this build > in > /usr/home/trivisions/html/sextoymerchant.com/payment/checkout_confirm.ph > p on line 64 > > So does this mean that my PHP installation does not support SSL, and > that I have to

Re: [PHP] fsockopen() with SSL?

2003-02-28 Thread Ernest E Vogelsinger
At 14:11 28.02.2003, Michael Temeschinko said: [snip] >Hello, >is it possible to fetch a Website via SSL? [snip] Sure - have a look at cUrl... -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ ht

Re: [PHP] fsockopen() to remote URL: what if remote URL "times out"?

2003-01-10 Thread Maxim Maletsky
"Phil Powell" <[EMAIL PROTECTED]> wrote... : > I have a question about the usage of fsockopen() to open and "scrape" the contents >of a remote URL: if the contents take a very long time to load on the remote URL >either due to server or coding issues, is there a way for the socket on the PHP en

Re: [PHP] fsockopen timeout not working

2002-10-07 Thread Rasmus Lerdorf
You should read up on socket_select On Tue, 8 Oct 2002, Scott Dowd wrote: > I have a PHP application that goes out an checks all our servers via > SNMP when requested. Trouble is, if the server is not available, the > fsockopen never times out and therefore never moves onto the next > server. I

RE: [PHP] fsockopen question

2002-07-03 Thread Martin Towell
That's still running sequentially -Original Message- From: Jose Arce [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 04, 2002 5:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] fsockopen question now it's clear thx :D is not the same thing as: while

RE: [PHP] fsockopen question

2002-07-03 Thread Jose Arce
sequentially. But there's two >sockets >open... > > >-----Original Message- >From: Jose Arce [mailto:[EMAIL PROTECTED]] >Sent: Thursday, July 04, 2002 4:48 PM >To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Subject: RE: [PHP] fsockopen question > > >So...i

Re: [PHP] fsockopen question

2002-07-03 Thread Tracker 1
thread? i don't > understand...i mean...if i can open more than one fsockopen...it is > multithread, or in wich cases php open more than one fsockopen? > thx :D > > > >From: Martin Towell <[EMAIL PROTECTED]> > >To: 'Jose Arce' <[EMAIL PROTECTED]>

RE: [PHP] fsockopen question

2002-07-03 Thread Martin Towell
I mean, you can do each of the fgets()'s will be executed sequentially. But there's two sockets open... -Original Message- From: Jose Arce [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 04, 2002 4:48 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] fsockope

RE: [PHP] fsockopen question

2002-07-03 Thread Jose Arce
rce' <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >Subject: RE: [PHP] fsockopen question >Date: Thu, 4 Jul 2002 16:39:36 +1000 > >you can do more than one fsockopen(), but since php isn't multi-threaded - >you'll still only be able to download one file at a time. >

RE: [PHP] fsockopen question

2002-07-03 Thread Martin Towell
you can do more than one fsockopen(), but since php isn't multi-threaded - you'll still only be able to download one file at a time. -Original Message- From: Jose Arce [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 04, 2002 4:39 PM To: [EMAIL PROTECTED] Subject: [PHP] fsockopen question

Re: [PHP] fsockopen and HTTP/1.1???

2002-06-27 Thread Chris Shiflett
Alex Elderson wrote: >The problem is the "Connection: Close\n\n" header. The webserver close the connection >after the first request, if i remove >the "Connection: Close\n\n" header the first fgets($web_conn, 128) command will never >ends. > This is because persistent TCP connections are the d

Re: [PHP] fsockopen

2002-06-24 Thread Gerard Samuel
Worked perfectly. Thanks. Evan Nemerson wrote: >Try > >fputs ($fp,"GET ".$url[path]." HTTP/1.0\r\nHost: " . $url[host] . "\r\n\r\n"); > >Your old request looked like "GET / HTTP/1.0\r\nHost:value_of_host/\r\n\r\n", >hence the 400. > > >On Monday 24 June 2002 17:40 pm, Gerard Samuel wrote: > >

Re: [PHP] fsockopen

2002-06-24 Thread Evan Nemerson
Try fputs ($fp,"GET ".$url[path]." HTTP/1.0\r\nHost: " . $url[host] . "\r\n\r\n"); Your old request looked like "GET / HTTP/1.0\r\nHost:value_of_host/\r\n\r\n", hence the 400. On Monday 24 June 2002 17:40 pm, Gerard Samuel wrote: > Im trying to figure out fsockopen to grab an rdf file. > Here

Re: [PHP] fsockopen

2002-05-16 Thread Miguel Cruz
On Thu, 16 May 2002, Scott St. John wrote: > I am using fsockopen to test several of our SQL and WEB servers at our > office. Testing ports 80, 1433 and 8080 work fine, but I would like to > set something up to test ports on our mainframe. These are printers > listening on 9100 and when I tes

RE: [PHP] fsockopen

2002-04-26 Thread Vail, Warren
I haven't tried this, but why don't you just use fopen with a URL, especially if you don't what to have to deal with the http header. I would think that if you do the fsockopen to port 80, you will need to use the handshake protocol required by that server which involves the get/put http header

RE: [PHP] fsockopen

2002-03-26 Thread Christoph Starkmann
Oohh so sorry... Now it works. I simply forgot to crop the tailing "/" from the URL. Call me stupid for now... Thanx alot ;) Cheers, Kiko - Fool me once. Shame on you. Fool me twice. Shame on me. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 --

RE: [PHP] fsockopen

2002-03-26 Thread Alastair Battrick
OTECTED]] > Sent: 26 March 2002 12:48 > To: '[EMAIL PROTECTED]'; Christoph Starkmann; [EMAIL PROTECTED] > Subject: RE: [PHP] fsockopen > > > Hi! > > > Is $tempPort set ? > > Yes... 80 as default... > > > > $tempUrl = ereg_replace("http://

RE: [PHP] fsockopen

2002-03-26 Thread Christoph Starkmann
Hi! > Is $tempPort set ? Yes... 80 as default... > > $tempUrl = ereg_replace("http://";, "", $url); > > > > $fp = fsockopen ($tempUrl, $tempPort, &$errno, &$errstr, 30); > > > > if (!$fp) > > { > > echo "error opening $url: \$errstr=$errstr, > \$errno=$errno\n"; > > } > > else > > { > >

RE: [PHP] fsockopen

2002-03-26 Thread Alastair Battrick
Is $tempPort set ? Alastair Battrick Senior Developer Lightwood Consultancy Ltd http://www.lightwood.net > -Original Message- > From: Christoph Starkmann [mailto:[EMAIL PROTECTED]] > Sent: 26 March 2002 12:40 > To: '[EMAIL PROTECTED]' > Subject: [PHP] fsockopen > > > Hi! > > I'm trying

Re: [PHP] fsockopen and HTTP Authorization

2002-02-28 Thread Mika Tuupola
On Thu, 28 Feb 2002, Bas Jobsen wrote: > I try to do a HTTP Authorization with a fsockopen, but it doesn't seem to > work. Who can help? > $user and $passwd are set well, my code: I think you can spy from PEAR HTTP_Request class how it can be done: http://chora.php.net/

Re: [PHP] fsockopen and HTTP Authorization

2002-02-27 Thread Bogdan Stancescu
You should have only one \r\n pair after the HTTP request AFAIK - only need two when the header ends. Bogdan Bas Jobsen wrote: >Hello, > >I try to do a HTTP Authorization with a fsockopen, but it doesn't seem to >work. Who can help? >$user and $passwd are set well, my code: >-- >$auth=base64_

Re: [PHP] fsockopen questions

2002-01-24 Thread Mike Frazer
Although they are experimental, I find the socket() and connect() functions in PHP4 to be much easier to use and manage. May want to try them, perhaps? They seem to be a little less tempramental. Mike Frazer "Bhavin Modi" <[EMAIL PROTECTED]> wrote in message news:01d901c1a419$deea9de0$0664a8c

Re: [PHP] fsockopen nntp stalls

2001-12-26 Thread Fred
Good suggestion, in fact I just recompiled to include the IMAP extensions for just that purpose. Unfortunately, I was unable to get a decent understanding of how to use the IMAP extensions with NNTP, and since I have implemented connection level NNTP sessions in a number of languages I thought it

Re: [PHP] fsockopen nntp stalls

2001-12-26 Thread Rasmus Lerdorf
Why not just use the imap extension which supports the NNTP protocol natively? On Wed, 26 Dec 2001, Fred wrote: > I am attempting to use fsockopen to connect to a news server. I am able to > successfully connect and authenticate. In fact, I can issue many commands > without a hitch. > > I do

RE: [PHP] fsockopen - whats the syntax of POST?

2001-11-15 Thread Daniel Kushner
Hi Stefan, Maybe this HTTPPost class will help you. http://phpclasses.upperdesign.com/browse.html/package/375 --Daniel > -Original Message- > From: Stefan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 15, 2001 8:53 AM > To: PHP > Subject: [PHP] fsockopen - whats the syntax of PO

Re: [PHP] fsockopen and https

2001-10-27 Thread John
From: "Brad Hubbard" <[EMAIL PROTECTED]> > > I am using fsockopen to post data to a dll on a SSL server. I setup the > > socket data and successfully posted the data to port 80 but as soon as I > > switch to port 443 I received no errors or text. > > Does this help? I use this on web servers to

Re: [PHP] fsockopen and https

2001-10-26 Thread Frewuill Rodriguez
As far as i know PHP can't handle SSL yet.. at least that was the situation a few versions ago. =( - Original Message - From: "Brad Hubbard" <[EMAIL PROTECTED]> To: "John" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 26, 20

Re: [PHP] fsockopen and https

2001-10-26 Thread Brad Hubbard
On Fri, 26 Oct 2001 17:18, John wrote: > Hello All, > > I am new to this list and am sure most of you are tired of this subject > appearing. Please forgive me as I am becoming tired of searching archives > and the internet and I am hoping someone here can help me. > > I am using fsockopen to post

Re: [PHP] fsockopen question

2001-04-26 Thread Nuno Silva
Hi, the way i would do it looks like this: - setup stunnel (www.stunnel.org) to listen to port 10443 in the 127.0.0.1 interface and forward that to www.myprovider.com - the php script would connect to 127.0.0.1:10443 using plain text - that's it, easy and clean! :) stunnel will hapilly forwar

RE: [PHP] fsockopen question

2001-04-26 Thread Michael Conley
nsaction is accepted. -Original Message- From: Matthew Luchak [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 10:04 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] fsockopen question I use: $fp = fsockopen("www.somewhere.com",80); fputs($fp, "GET http://www.somewhere.com/som

RE: [PHP] fsockopen question

2001-04-26 Thread Matthew Luchak
hen try the response.. Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Michael Conley [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 1:00 PM To: Matthew Luchak; [EMAIL PROTECTED] Subject: RE: [PHP] fsockopen ques

RE: [PHP] fsockopen question

2001-04-26 Thread Matthew Luchak
I use: $fp = fsockopen("www.somewhere.com",80); fputs($fp, "GET http://www.somewhere.com/somedir/somepage.html HTTP/1.0\r\n\r\n"); to parse. Should be easily modified Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From:

Re: [PHP] fsockopen timeout not working

2001-02-15 Thread Richard Lynch
Isn't there a set_blocking function you have to call first?... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Plamen Slav

  1   2   >