How to send a post request from mochiweb to another server?

58 views
Skip to first unread message

Ivan Uemlianin

unread,
May 4, 2011, 12:13:00 PM5/4/11
to MochiWeb
Dear All

I would like to send POST requests from my mochiweb application to
another server. Currently I'm just using:

Response = http:request(post, Request, [], []),

This works, but only if I start inets first, e.g. with one of:

inets:start().

application:start(inets)

Is there a function within mochiweb I can use instead of starting up
another application?

With thanks and best wishes

Ivan

Bob Ippolito

unread,
May 4, 2011, 12:37:15 PM5/4/11
to moch...@googlegroups.com

It's normal to start applications that your application depends on.
You should do application:start(inets) along with anything else you
need before you start your application.

-bob

Ivan Uemlianin

unread,
May 4, 2011, 12:54:36 PM5/4/11
to moch...@googlegroups.com, moch...@googlegroups.com
Thanks. I wanted to make sure there was nothing in mochiweb I should use instead.

Best wishes

Ivan


Sent from iPhone.

> --
> You received this message because you are subscribed to the Google Groups "MochiWeb" group.
> To post to this group, send email to moch...@googlegroups.com.
> To unsubscribe from this group, send email to mochiweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mochiweb?hl=en.
>

Reply all
Reply to author
Forward
0 new messages