Re: PHP Header to stimulate a POST method or POST string????
| From: | Scott Fletcher | Date: | Wed, 18 Feb 2004 22:02:02 +0000 |
| Subject: | Re: PHP Header to stimulate a POST method or POST string???? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178180@lists.php.net to get a copy of this message | ||
P.S. The telnet part, it said...
--snip--
Trying....
Connected to www.google.akadns.net
--snip--
When I exited, I get HTML codes dumped on screen along with bad request...
Scott F.
"Chris Shiflett" <shiflett@php.net> wrote in message
news:20040218214406.54115.qmail@web14310.mail.yahoo.com...
> --- Scott Fletcher <scott@abcoa.com> wrote:
> > Sample code is $fp = fsockopen("www.whatever.com", 443, $errno,
> > $errmsg);
> >
> > Error message is $errno --> 13 and $errmsg --> Permission denied
>
> I'd recommend forgetting the SSL bit for now and trying this with a
> regular Web server.
>
> I'm not sure what permission denied is about. You should get a connection
> refused message if there is any networking problem or firewall preventing
> the connection. Can you try this script:
>
> <?
> echo ini_get('allow_url_fopen');
> $fp = fsockopen('www.google.com', 80, $errno, $errmsg);
> echo "[$errno] [$errmsg]";
> ?>
>
> Maybe this will reveal something. You can also want to manually test this:
>
> telnet www.google.com 80
>
> Just to see if you can connect from the host where this script is running.
>
> Chris
>
>
>
> =====
> Chris Shiflett - http://shiflett.org/
>
> PHP Security - O'Reilly
> Coming mid-2004
> HTTP Developer's Handbook - Sams
> http://httphandbook.org/
> PHP Community Site
> http://phpcommunity.org/