PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_Client » Bug #4045

https calls hang from PHP 4.11

Details

Submitted2005-04-04 01:20 UTC
Fromkevin_j_nicholls at hotmail dot com
StatusBogus
PackageHTTP_Client
PHP Version4.3.10
OSUnix
Roadmaps(Not assigned)

Comments

[2005-04-04 01:20 UTC] kevin_j_nicholls at hotmail dot com

Description:
------------
It may be my ISP host. I'm gonna try to find another host and try the same code.

Reproduce code:
---------------
// putting this into a php 4.11 page causes infinite hang

ini_set("include_path", HOSTPATH."/pear/PEAR-1.3.1");
require_once('HTTP/Client.php');
$client = new HTTP_Client();
$aryAILogin = Array();
$aryAILogin["email"]="EMAIL";
$aryAILogin["password"]="PASSWORD";

$client->post("https://secure.dataweb.com",$aryAILogin);
$resp = $client->currentResponse();
echo "HELLO WORLD<br />".$resp["body"];

// USING THE SAME CODE FOR AN HTTP CALL WORKS WONDERFULLY

Expected result:
----------------
// BELOW IS WHAT I GET FROM A BROWSER

HELLO WORLD<br />
<html>
<head>
<title>
MyWebs - Westside</title>

<link rel="stylesheet" href="/_westside2.css" type="text/css" title="corpStyles">
<script language="javascript" TYPE="text/javascript" src="/_admin2.js"></script>
<script language="javascript" TYPE="text/javascript" src="/_home2.js"></script>
</head>
<body text="#003366" style="background:#215082;" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" onload="">

<table id="NavigationTABLE" width="100%" border="0" cellpadding="0" cellspacing="0" class="background">
<!-- top nav starts -->
<tr>

<td align="left" valign="middle" rowspan="2" style="width:179;"><a target=_top href="http://www.westside.com/"><img src="/_images/designer_logo.gif" width="179" height="21" alt="DataWeb HostRAD v2.0" border="0"></a></td>
<td align="left" valign="middle" style="width:auto;">
<img src="/_.gif" width="1" height="1" border="0">
</td>
<td align="right" valign="middle" width="205" nowrap><a href="http://helpv2.westside.com/default.view" target="wsHelp"><img alt="Help" src="/_images/tn_help.gif" width="48" border="0" height="15"></a><img src="/_images/divider.gif" width="1" border="0" height="15"><a href="http://support.westside.com/default.view" target="_blank"><img alt="Support" src="/_images/tn_support.gif" width="67" border="0" height="15"></a><img src="/_images/divider.gif" width="1" border="0" height="15"><a href="/logonredirect.csp?redirect=/"><img alt="Log On" src="/_images/tn_logon.gif" width="68" border="0" height="15"></a>
<img src="/_.gif" width="5" height="1"></td>
</tr>
<!-- top nav ends -->
</table>
<!-- tab links table -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20" rowspan="3"><img src="/_.gif" width="20" height="1"></td>
<td width="100%" colspan="2"><img src="/_.gif" width="1" height="7"></td>
<td width="20" rowspan="3"><img src="/_.gif" width="20" height="1"></td>
<tr>
<td align="left" valign="top" rowspan="2" nowrap><table border="0" cellspacing="0" cellpadding="0" vspace="0" hspace="0" height="14">

<tr>
<td nowrap class="tabstripItemSelected" style="border-width:0px 0px 1px 0px; cursor:default; display:;"><a style="text-decoration:none; border-style:none; display:;" id="aLinkMyWebs" href="http://www.westside.com/mywebs.csp">   My Applications   </a></td><td bgcolor="#003366"><img src="/_.gif" height="1" width="1"></td></tr>
</table>
</td>
<td align="left" width="100%" valign="top"><img src="/_.gif" width="1" border="0" height="13"></td>
</tr>
<tr>
<td height="1" width="100%" class="borderColor"><img src="/_.gif" width="1" border="0" height="1"></td>
</tr>
</table>
<!-- end tab links table, start content table -->
<table width="100%" height="89%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20" rowspan="8"><img src="/_.gif" width="20" height="1"></td>
<td align="right" width="100%" height="18" valign="top" class="paletteBkg" colspan="3"> </td>
<td width="20" rowspan="8"><img src="/_.gif" width="20" height="1"></td>

</tr>
<tr>
<td align="left" height="1" valign="top" class="borderColor" colspan="3"><img src="/_.gif" width="720" border="0" height="1"></td>
</tr>
<tr>
<td align="left" height="6" valign="top" class="contentbkg" colspan="3"><img src="/_.gif" width="1" border="0" height="6"></td>
</tr>
<tr>
<td align="left" width="7" valign="top" class="contentbkg"><img src="/_.gif" width="7" border="0" height="300"></td>
<td align="left" width="513" height="92%" valign="top" class="contentbkg"><img src="/_.gif" width="513" border="0" height="1"><br>
<table border="0" width="513">
<tr>
<td valign="top" cellpadding="0" cellspacing="0"></td>
<td valign="top" cellpadding="0" cellspacing="0"><img src="/_.gif" width="10" border="0" height="1"></td>
<td valign="top" cellpadding="0" cellspacing="0"><img src="/_.gif" width=5 height=1><br><font color="#003366" face="verdana,arial,helvetica,sans-serif" size="2"><b>Page Not Found</b></font>
<p>The page you requested could not be found. Please check that the page's URL is correct.<p>

</td>
</tr>
</table>
</td>
<td align="left" width="10" valign="top" class="contentbkg"><img src="/_.gif" width="10" border="0" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" class="contentbkg" colspan="3"><img src="/_.gif" width="1" border="0" height="10"></td>
</tr>
<tr>
<td align="left" height="1" valign="top" class="borderColor" colspan="3"><img src="/_.gif" width="1" border="0" height="1"></td>
</tr>
<tr>
<td align="center" height="19" valign="middle" class="paletteBkg" colspan="3" nowrap> </td>
</tr>
<tr>
<td align="right" height="1" valign="top" class="borderColor" colspan="3"><img src="/_.gif" width="1" border="0" height="1"></td>

</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td><img src="/_.gif" width="1" border="0" height="5"></td></tr>
<tr>
<td align="center" width="100%" valign="middle" colspan="5" class="finetext" nowrap><img src="/_.gif" width="44" border="0" height="5">Copyright©2003-2005 DataWeb Corporation. All rights reserved</td>
</tr>
<tr><td><img src="/_.gif" width="1" border="0" height="5"></td></tr>
</table>

</body>
</html>

Actual result:
--------------
Infinite hang