php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58408 tests/HttpRequest_002 fails trivially
Submitted: 2008-11-06 13:19 UTC Modified: 2009-12-10 08:43 UTC
From: myers at spy-hill dot net Assigned:
Status: Closed Package: pecl_http (PECL)
PHP Version: HEAD CVS-2008-11-06 (dev) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: myers at spy-hill dot net
New email:
PHP Version: OS:

 

 [2008-11-06 13:19 UTC] myers at spy-hill dot net
Description:
------------
HttpRequest GET/POST test reports failure, but the only problem was that Google.com returned 200 rather than expected 302, and returned SSL engine list.

Comparison with Google seems reasonable, except that they may well change their site and you have no recourse.  Instead, how about testing against pecl.php.net or some other server?

This was with PHP 5.2.6 but that was not an option, I was not using CVS HEAD


Expected result:
----------------
I expected the test to pass.  When it failed I expected a serious problem, not just 200 in place of 302.

Actual result:
--------------
www15:tests> more HttpRequest_002.diff
005+     [response_code] => 200
005-     [response_code] => 302^M
031+             [0] => padlock
032+             [1] => dynamic
033+         )
034+ 
037+         )
038+ 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-10 08:43 UTC] mike@php.net
.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Sep 16 23:03:39 2021 UTC