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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
36 - 31 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 22 20:01:29 2024 UTC