From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: salutations and web scraping Date: Tue, 24 Jan 2012 14:07:01 +0100 Message-ID: <874nvlmeq2.fsf@pobox.com> References: <871ur7fcyj.fsf@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1327410921 1428 80.91.229.12 (24 Jan 2012 13:15:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Jan 2012 13:15:21 +0000 (UTC) Cc: guile-user@gnu.org To: Catonano Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jan 24 14:15:16 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RpgDR-000243-Jd for guile-user@m.gmane.org; Tue, 24 Jan 2012 14:15:13 +0100 Original-Received: from localhost ([::1]:39334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpg5n-0006Tv-7X for guile-user@m.gmane.org; Tue, 24 Jan 2012 08:07:19 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpg5i-0006TQ-Q5 for guile-user@gnu.org; Tue, 24 Jan 2012 08:07:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rpg5c-0001TP-5Q for guile-user@gnu.org; Tue, 24 Jan 2012 08:07:14 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:63190 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpg5b-0001T0-VZ for guile-user@gnu.org; Tue, 24 Jan 2012 08:07:08 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id A0C0F860B; Tue, 24 Jan 2012 08:07:06 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=hgwy4OsSl1P+ 4/7XLOKlQ0JFRho=; b=h+hvAI76OnqNp16G9osizY1Ky6GLZo1UHvaK61+MEKFv ClXGw+3KLBSNAjpQRqhlGVPQiWGevxe4ajObXfK9Sn3v7c1WPk0bruVR4Xjm23RS PI0kB7x+MohiTAXzd7t99zRg3YSPWa7+cgzEOV6XZtHUV95Cp5HKyS3CFnSPPSE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=BA1KKj A5DqyTYH0U8D7VHhzE8WpCgf6hAUfwVPImh/DL6kaiD7L2r64yoqZvrIKVvjYDFT e5ovXWPzYNyD4ctkoOsqKxcN0nlLZSOvtUv1DmZ7p9M8fwJrAyjfahyPW8NX7nfi IEHJD1UUvE/qYHH51i7t0ihr2OLHTZE2MQFE0= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 8821F860A; Tue, 24 Jan 2012 08:07:06 -0500 (EST) Original-Received: from badger (unknown [90.163.36.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id B9EE085F8; Tue, 24 Jan 2012 08:07:05 -0500 (EST) In-Reply-To: (catonano@gmail.com's message of "Tue, 24 Jan 2012 13:47:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: 5094F178-468C-11E1-9371-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9180 Archived-At: On Tue 24 Jan 2012 13:47, Catonano writes: > I tried with www.friendfeed.com and I got back what follows: > > =C2=A0$11 =3D "\r > 301 Moved Permanently\r > \r >

301 Moved Permanently

\r >
nginx/0.6.31
\r > \r > \r > " I suspect here in $10 you got a response with the response-code of 301. It's a redirect. Guile's HTTP client (unlike Firefox's) doesn't automatically handle redirects for you; you need to grub around for where it wants to send you. In this case, try checking the response-code, and if it's a redirect code, then look at the response-location. See response-location in the manual. Cheers, Andy --=20 http://wingolog.org/