unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* http request?
@ 2011-04-25 20:27 Bernardo Ezequiel Contreras
  2011-04-25 20:54 ` Bernardo Ezequiel Contreras
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Bernardo Ezequiel Contreras @ 2011-04-25 20:27 UTC (permalink / raw)
  To: guile-user

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

Hi all,
 is there a library for requesting an url? and get the contents?
 like python's http://docs.python.org/library/urllib.html <http://urllib>

thanks in advance

[-- Attachment #2: Type: text/html, Size: 207 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: http request?
  2011-04-25 20:27 http request? Bernardo Ezequiel Contreras
@ 2011-04-25 20:54 ` Bernardo Ezequiel Contreras
  2011-04-26  9:21 ` Andy Wingo
  2011-04-26 12:41 ` Thien-Thi Nguyen
  2 siblings, 0 replies; 8+ messages in thread
From: Bernardo Ezequiel Contreras @ 2011-04-25 20:54 UTC (permalink / raw)
  To: guile-user


[-- Attachment #1.1: Type: text/plain, Size: 367 bytes --]

sorry,  not so clever question[?]

http://www.gnu.org/software/guile/manual/guile.html#Web


On Mon, Apr 25, 2011 at 5:27 PM, Bernardo Ezequiel Contreras <
vonbecmann@gmail.com> wrote:

> Hi all,
>  is there a library for requesting an url? and get the contents?
>  like python's http://docs.python.org/library/urllib.html <http://urllib>
>
> thanks in advance
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 846 bytes --]

[-- Attachment #2: 330.gif --]
[-- Type: image/gif, Size: 96 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: http request?
  2011-04-25 20:27 http request? Bernardo Ezequiel Contreras
  2011-04-25 20:54 ` Bernardo Ezequiel Contreras
@ 2011-04-26  9:21 ` Andy Wingo
  2011-04-26 10:49   ` rixed
  2011-04-26 12:41 ` Thien-Thi Nguyen
  2 siblings, 1 reply; 8+ messages in thread
From: Andy Wingo @ 2011-04-26  9:21 UTC (permalink / raw)
  To: Bernardo Ezequiel Contreras; +Cc: guile-user

Hi Bernardo,

On Mon 25 Apr 2011 22:27, Bernardo Ezequiel Contreras <vonbecmann@gmail.com> writes:

>  is there a library for requesting an url? and get the contents?
>  like python's http://docs.python.org/library/urllib.html

Not yet, no.  There exist libraries for URIs and HTTP requests and
responses, but Guile doesn't have an API to tie them together (yet?).

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: http request?
  2011-04-26  9:21 ` Andy Wingo
@ 2011-04-26 10:49   ` rixed
  2011-04-26 11:32     ` Andy Wingo
  0 siblings, 1 reply; 8+ messages in thread
From: rixed @ 2011-04-26 10:49 UTC (permalink / raw)
  To: guile-user

-[ Tue, Apr 26, 2011 at 11:21:42AM +0200, Andy Wingo ]----
> >  is there a library for requesting an url? and get the contents?
> >  like python's http://docs.python.org/library/urllib.html
> 
> Not yet, no.  There exist libraries for URIs and HTTP requests and
> responses, but Guile doesn't have an API to tie them together (yet?).

Something similar to python's twisted would be extra cool IMO.
Just in case someone feels the motivation :)




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: http request?
  2011-04-26 10:49   ` rixed
@ 2011-04-26 11:32     ` Andy Wingo
  2011-04-26 12:01       ` rixed
  0 siblings, 1 reply; 8+ messages in thread
From: Andy Wingo @ 2011-04-26 11:32 UTC (permalink / raw)
  To: rixed; +Cc: guile-user

On Tue 26 Apr 2011 12:49, rixed@happyleptic.org writes:

> -[ Tue, Apr 26, 2011 at 11:21:42AM +0200, Andy Wingo ]----
>> >  is there a library for requesting an url? and get the contents?
>> >  like python's http://docs.python.org/library/urllib.html
>> 
>> Not yet, no.  There exist libraries for URIs and HTTP requests and
>> responses, but Guile doesn't have an API to tie them together (yet?).
>
> Something similar to python's twisted would be extra cool IMO.
> Just in case someone feels the motivation :)

I don't know much about it, but serveez might be going in that
direction.

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: http request?
  2011-04-26 11:32     ` Andy Wingo
@ 2011-04-26 12:01       ` rixed
  2011-04-26 12:49         ` Andy Wingo
  0 siblings, 1 reply; 8+ messages in thread
From: rixed @ 2011-04-26 12:01 UTC (permalink / raw)
  To: guile-user

> > Something similar to python's twisted would be extra cool IMO.
> 
> I don't know much about it, but serveez might be going in that
> direction.

Unfortunately, from a quick fly-by of serveez manual I wouldn't say so.

While, from some high level viewpoint, twisted can be seen as a mere
server build helper, it's also much more than than: it's actually an
event driven(*) framework for building elaborated protocols. For
instance, you inherit the HTTP protocol implementation and override its
'message received' hook and voilà, you are implementing your own protocol
over HTTP.
Have used it a couple of times and I must say I've never encountered
another lib in any other language that make it so easy to write both
servers and clients (when high perfs are not required).
I'm far from being a python fan but twisted and scapy are two pieces of
python code any hacker should have a look at, and which I'd love to
see equivalents in other languages, IMHO.

(*) but using python 'yield' builtin it becomes lightweight threaded;
although python's thread are ashamedly inefficient it's still easier to
read/write code written this way.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: http request?
  2011-04-25 20:27 http request? Bernardo Ezequiel Contreras
  2011-04-25 20:54 ` Bernardo Ezequiel Contreras
  2011-04-26  9:21 ` Andy Wingo
@ 2011-04-26 12:41 ` Thien-Thi Nguyen
  2 siblings, 0 replies; 8+ messages in thread
From: Thien-Thi Nguyen @ 2011-04-26 12:41 UTC (permalink / raw)
  To: Bernardo Ezequiel Contreras; +Cc: guile-user

() Bernardo Ezequiel Contreras <vonbecmann@gmail.com>
() Mon, 25 Apr 2011 17:27:43 -0300

   library for requesting an url? and get the contents?

Guile-WWW has module (www main):

  http://www.nongnu.org/guile-www/doc/main.html

and other stuff:

  http://www.nongnu.org/guile-www/

If it doesn't work with your Guile, that's a bug!



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: http request?
  2011-04-26 12:01       ` rixed
@ 2011-04-26 12:49         ` Andy Wingo
  0 siblings, 0 replies; 8+ messages in thread
From: Andy Wingo @ 2011-04-26 12:49 UTC (permalink / raw)
  To: rixed; +Cc: guile-user

On Tue 26 Apr 2011 14:01, rixed@happyleptic.org writes:

> While, from some high level viewpoint, twisted can be seen as a mere
> server build helper, it's also much more than than: it's actually an
> event driven(*) framework for building elaborated protocols.

I am familiar with twisted; though perhaps in an older incarnation.  A
former work used it heavily, and hacking it was my main job.  TBH though
I am unconvinced.  I would prefer erlang / termite-style concurrency,
rather than inversion of control.  Just MHO of course; lots of people do
like twisted :)

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-04-26 12:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-25 20:27 http request? Bernardo Ezequiel Contreras
2011-04-25 20:54 ` Bernardo Ezequiel Contreras
2011-04-26  9:21 ` Andy Wingo
2011-04-26 10:49   ` rixed
2011-04-26 11:32     ` Andy Wingo
2011-04-26 12:01       ` rixed
2011-04-26 12:49         ` Andy Wingo
2011-04-26 12:41 ` Thien-Thi Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).