On Wed, 10 Feb 2010 18:16:03 +0100, Andreas B. Mundt wrote:

> we use GET to download a wikipage and further process the data to
> prepare the manual of Debian Edu. The command:
>       GET 
> "http://wiki.debian.org/DebianEdu/Documentation/Lenny/AllInOne?action=raw";
> works fine in Lenny, but stopped working in squeeze where "You are not
> allowed to access this!" is returned.

That seems to be a change on wiki.debian.org, I see the same with
wget and curl:

#v+
gre...@belanna:/tmp$ GET 
"http://wiki.debian.org/DebianEdu/Documentation/Lenny/AllInOne?action=raw";
You are not allowed to access this!
gre...@belanna:/tmp$ wget 
"http://wiki.debian.org/DebianEdu/Documentation/Lenny/AllInOne?action=raw";
--2010-02-10 19:01:40--  
http://wiki.debian.org/DebianEdu/Documentation/Lenny/AllInOne?action=raw
Resolving wiki.debian.org... 93.94.130.161
Connecting to wiki.debian.org|93.94.130.161|:80... connected.
HTTP request sent, awaiting response... 403 FORBIDDEN
2010-02-10 19:01:40 ERROR 403: FORBIDDEN.

gre...@belanna:/tmp$ curl 
"http://wiki.debian.org/DebianEdu/Documentation/Lenny/AllInOne?action=raw";
You are not allowed to access this!
gre...@belanna:/tmp$ 
#v-

What works is specifying a user-agent:

#v+
gre...@belanna:/tmp$ wget --user-agent="Iceweasel" 
"http://wiki.debian.org/DebianEdu/Documentation/Lenny/AllInOne?action=raw";
--2010-02-10 19:04:53--  
http://wiki.debian.org/DebianEdu/Documentation/Lenny/AllInOne?action=raw
Resolving wiki.debian.org... 93.94.130.161
Connecting to wiki.debian.org|93.94.130.161|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1157 (1.1K) [text/plain]
Saving to: `AllInOne?action=raw'

100%[================================================>] 1,157       --.-K/s   
in 0s      

2010-02-10 19:04:53 (17.1 MB/s) - `AllInOne?action=raw' saved [1157/1157]

gre...@belanna:/tmp$ 
#v-


Cheers,
gregor

-- 
 .''`.   http://info.comodo.priv.at/ -- GPG Key IDs: 0x00F3CFE4, 0x8649AA06
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe
   `-    NP: Neil Young: After The Goldrush

Attachment: signature.asc
Description: Digital signature

Reply via email to