Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36077 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6814 invoked from network); 10 Mar 2008 11:39:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Mar 2008 11:39:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.141.85.117 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.141.85.117 uf1.search.ch Linux 2.6 Received: from [195.141.85.117] ([195.141.85.117:49017] helo=smtp.rim.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/21-33980-3DD15D74 for ; Mon, 10 Mar 2008 06:39:00 -0500 Received: from localhost (localhost [127.0.0.1]) by rolig.search.ch (Postfix) with ESMTP id 801F939995D; Mon, 10 Mar 2008 12:38:56 +0100 (CET) Received: from smtp.rim.ch ([127.0.0.1]) by localhost (search.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24497-06; Mon, 10 Mar 2008 12:38:54 +0100 (CET) Received: from [192.168.1.72] (ultrafilter-i [192.168.85.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rolig.search.ch (Postfix) with ESMTP id 9A2DC3983A9; Mon, 10 Mar 2008 12:38:54 +0100 (CET) Message-ID: <47D51DCD.2050909@cschneid.com> Date: Mon, 10 Mar 2008 12:38:53 +0100 User-Agent: Thunderbird 1.5.0.12 (X11/20060911) MIME-Version: 1.0 To: Justin Martin CC: internals@lists.php.net References: <3D.4F.43615.CDA74D74@pb1.pair.com> <0A.AF.43615.EBD74D74@pb1.pair.com> In-Reply-To: <0A.AF.43615.EBD74D74@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at search.ch Subject: Re: Suggestion for get_headers From: cschneid@cschneid.com (Christian Schneider) Justin Martin wrote: >> headers generated by an HTTP request. The primary parameter to this, >> "string $url", is provided unencoded. Due to this, any request with >> special characters (i.e. a space), will return 400 BAD REQUEST. My Garbage in, garbage out. It is up to you to provide it with a valid URL (spaces are not allowed in a URL). Use e.g. http_build_query() for the URL parameters. Regards, - Chris