Phobos urllib

Graham Fawcett fawcett at uwindsor.ca
Sat Aug 14 15:43:54 PDT 2010


Hi Andrei,

On Sat, 14 Aug 2010 09:35:21 -0500, Andrei Alexandrescu wrote:

> On 08/13/2010 09:23 AM, Graham Fawcett wrote:
>> Hi Mengu,
>>
>> On Fri, 13 Aug 2010 10:15:01 -0400, Mengu wrote:
>>
>>> Mengu Wrote:
>>>
>>>> Hello everyone,
>>>>
>>>> Python has a library named urllib which can be found at
>>>> http://docs.python.org/library/urllib2.html.
>>>>
>>>> Does Phobos have anything similar to this library? All I need is
>>>> fetching data from a web site.
>>>
>>> Anyone has any idea on this matter?
>>
>> I don't think there is anything usable in Phobos at the moment.
>> However, several people have written bindings for libCURL, which will
>> do what you need.
>>
>> I've got one here:
>>
>> http://github.com/gmfawcett/d-play-libcurl/blob/master/fawcett/curl.d
>>
>> There's one on dsource, here:
>>
>> http://dsource.org/projects/curld/browser/trunk/curld
>>
>> Best,
>> Graham
> 
> Graham,
> 
> 
> I see your translation of libcurl's header is fairly complete. May I
> copy it into std.etc? We wanted to put libcurl there for a long time
> (Walter even exchanged emails with its author), and it would be a
> timesaver to copy yours.
> 
> After we have the basic translation we should define higher-level APIs
> in Phobos that cloak it (libcurl has an unsafe interface).

Yes -- I am happy to share it with the Phobos team.

If you need me to sign a Contributor's Agreement or something, please 
email me.

Regards,
Graham


> 
> 
> Thanks,
> 
> Andrei



More information about the Digitalmars-d mailing list