Http post is async or sync?

Hi,
I am using

Net::HTTP.post_form URI.parse(Url), { .......... }

in my application. But this slows the process, hence I was wondering if
this http call is synchronus or asynchronus? I couldn't find any
information about it so any help is appreciated.

Thanks.

···

--
Posted via http://www.ruby-forum.com/.

Synchronous. But of course you could test this in IRB.

···

On Jan 3, 2008 10:57 PM, Rm Rm <renu@2cast.net> wrote:

Hi,
I am using

Net::HTTP.post_form URI.parse(Url), { .......... }

in my application. But this slows the process, hence I was wondering if
this http call is synchronus or asynchronus? I couldn't find any
information about it so any help is appreciated.

Thanks.
--
Posted via http://www.ruby-forum.com/\.

Paul Stickney wrote:

Synchronous. But of course you could test this in IRB.

Thanks.How can I make an asynchronus call?

···

--
Posted via http://www.ruby-forum.com/\.

If you're willing to rearrange your application, you can use
Ruby/EventMachine to make async HTTP calls. (SMTP, DNS, others are supported
as well.)

···

On Jan 6, 2008 12:46 PM, Rm Rm <renu@2cast.net> wrote:

Paul Stickney wrote:
> Synchronous. But of course you could test this in IRB.

Thanks.How can I make an asynchronus call?
--
Posted via http://www.ruby-forum.com/\.

I don't see any particular reason why threads wouldn't work either.
(But I have not threaded around the HTTP API and there may be some nuances.)