[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: salutations and web scraping

From: Andy Wingo
Subject: Re: salutations and web scraping
Date: Tue, 24 Jan 2012 14:07:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

On Tue 24 Jan 2012 13:47, Catonano <address@hidden> writes:

> I tried with and I got back what follows:
>  $11 = "<html>\r
> <head><title>301 Moved Permanently</title></head>\r
> <body bgcolor=\"white\">\r
> <center><h1>301 Moved Permanently</h1></center>\r
> <hr><center>nginx/0.6.31</center>\r
> </body>\r
> </html>\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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]