[plt-dev] Re: [plt-scheme] Planet HTTP 403 errors

From: Jordan Johnson (jmj at fellowhuman.com)
Date: Tue Nov 24 10:35:11 EST 2009

Hi Robby,

This code *does* trigger the error.  And it does it in DrScheme, and  
in mzscheme run from the command line.

jmj

On Nov 23, 2009, at 3:54 AM, Robby Findler wrote:

> [ moving to plt-dev ]
>
> Anyone know of any security features in mac os x (or in his
> router..!?) that might be defeating this?
>
> If it helps, this is what planet's is doing to download the file (run
> the code in the module language and the url shouldn't have any
> whitespace in it, just in case my or your email chops up the lines).
>
> #lang scheme
> (require net/url)
> (call/input-url
> (string->url
>  "http://planet.plt-scheme.org/servlets/planet-servlet.ss?lang=%224.2.3.2%22&name=%22tiles.plt%22&maj=1&min-lo=14&min-hi=%23f&path=%28%22sbloch%22%29 
> ")
> get-pure-port
> (lambda (port)
>   (read-line port)))
>
> Robby
>
> On Sun, Nov 22, 2009 at 9:58 PM, Jordan Johnson  
> <jmj at fellowhuman.com> wrote:
>> Hi Robby,
>>
>> In Safari it works, though again, in DrScheme (require (planet
>> sbloch/tiles:1:14)) fails (and so does the old-style require).
>>
>> jmj
>>
>> On Nov 22, 2009, at 2:54 PM, Robby Findler wrote:
>>
>>> jmj, Steve:
>>>
>>> What happens if you try to visit the relevant link in your web
>>> browser? Here's one example url, which I got from the planet
>>> commandline tool:
>>>
>>> % planet url sbloch tiles.plt 1 14
>>>
>>> http://planet.plt-scheme.org/servlets/planet-servlet.ss?lang=%224.2.3.2%22&name=%22tiles.plt%22&maj=1&min-lo=14&min-hi=%23f&path=%28%22sbloch%22%29
>>>
>>> You should get a few screenfuls of gibberish, starting like this:
>>>
>>> H4sIAJF83EoAA+xdbXPTRtf 
>>> +jH7F3mIKNhPZjhNoSELaEt5SoPCQAKWdDs9KWltqJK0qreIY
>>> hvu33+fsSrJky45tiONQZSaJvS9nz1579jr7Ju3rFydaw6O+aVPSiNg/ 
>>> CYsF6VHXSyLWJA2L
>>>
>>> Robby
>>
>> _________________________________________________
>>  For list-related administrative tasks:
>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>



Posted on the dev mailing list.