Message from discussion
How to send a post request from mochiweb to another server?
Received: by 10.227.32.131 with SMTP id c3mr86770wbd.6.1304528131959;
Wed, 04 May 2011 09:55:31 -0700 (PDT)
X-BeenThere: mochiweb@googlegroups.com
Received: by 10.216.121.138 with SMTP id r10ls616093weh.3.gmail; Wed, 04 May
2011 09:55:30 -0700 (PDT)
Received: by 10.216.82.8 with SMTP id n8mr101279wee.7.1304528130499;
Wed, 04 May 2011 09:55:30 -0700 (PDT)
Received: by 10.216.190.140 with SMTP id e12mswen;
Wed, 4 May 2011 09:54:50 -0700 (PDT)
Received: by 10.227.7.19 with SMTP id b19mr89495wbb.4.1304528090225;
Wed, 04 May 2011 09:54:50 -0700 (PDT)
Received: by 10.227.7.19 with SMTP id b19mr89494wbb.4.1304528090205;
Wed, 04 May 2011 09:54:50 -0700 (PDT)
Return-Path: <ivan.llai...@gmail.com>
Received: from mail-ww0-f43.google.com (mail-ww0-f43.google.com [74.125.82.43])
by gmr-mx.google.com with ESMTPS id r19si311759wbg.1.2011.05.04.09.54.50
(version=TLSv1/SSLv3 cipher=OTHER);
Wed, 04 May 2011 09:54:50 -0700 (PDT)
Received-SPF: pass (google.com: domain of ivan.llai...@gmail.com designates 74.125.82.43 as permitted sender) client-ip=74.125.82.43;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ivan.llai...@gmail.com designates 74.125.82.43 as permitted sender) smtp.mail=ivan.llai...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by wwb17 with SMTP id 17so1193433wwb.12
for <mochiweb@googlegroups.com>; Wed, 04 May 2011 09:54:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:references:in-reply-to:mime-version
:content-transfer-encoding:content-type:message-id:cc:x-mailer:from
:subject:date:to;
bh=hhGAz0sKEQHp2+xsnJ/qYQPx5tACEzii2Y832oTYVdo=;
b=l6nkLkk9R1G4fbGGb2e90evhOip+hKRJ7HFUaD3ZE/Q1dYQB5UvjROB5kKfp1837cb
qUKW5HJS8t4WN3CTyiZ+BW/7/2yoIc/ZToVNmUm/WzrvJTtXaJYPug721OE5ZYhvFNpi
6XUBoGYgb2b28SVBK+vRTDhb+8D1em/MpabnE=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=references:in-reply-to:mime-version:content-transfer-encoding
:content-type:message-id:cc:x-mailer:from:subject:date:to;
b=Lo3Yx68uHKTqoXFWv+xOVWw6Df1v1GX8FRA4JAEC0U7kgDhC2b8cKQ3UTx8XBZ0ZkN
sTVHvoY65s5I8VvAnbnWBjRknvyxQnp/4f1fneIzI4zHiV1dlFMZd5H4mUxMaVT1MYUM
/xdApifPz4/mVeJfYVODpXBKsLWL49eFM1zSU=
Received: by 10.227.37.22 with SMTP id v22mr1415951wbd.27.1304528089969;
Wed, 04 May 2011 09:54:49 -0700 (PDT)
Return-Path: <ivan.llai...@gmail.com>
Received: from [10.223.60.128] ([82.132.210.196])
by mx.google.com with ESMTPS id y29sm814628wbd.55.2011.05.04.09.54.47
(version=TLSv1/SSLv3 cipher=OTHER);
Wed, 04 May 2011 09:54:49 -0700 (PDT)
References: <062dba2c-064e-4f0c-90fb-6e82745cc...@e21g2000yqe.googlegroups.com> <BANLkTikhE7UbEKpBwHpvLiG4Nc+pjo_...@mail.gmail.com>
In-Reply-To: <BANLkTikhE7UbEKpBwHpvLiG4Nc+pjo_...@mail.gmail.com>
Mime-Version: 1.0 (iPhone Mail 8H7)
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
Message-Id: <68D753A7-9E24-416F-AFBC-D09F2E914...@gmail.com>
Cc: "mochiweb@googlegroups.com" <mochiweb@googlegroups.com>
X-Mailer: iPhone Mail (8H7)
From: Ivan Uemlianin <ivan.llai...@gmail.com>
Subject: Re: [mochiweb] How to send a post request from mochiweb to another server?
Date: Wed, 4 May 2011 17:54:36 +0100
To: "mochiweb@googlegroups.com" <mochiweb@googlegroups.com>
Thanks. I wanted to make sure there was nothing in mochiweb I should use ins=
tead.
Best wishes
Ivan
Sent from iPhone.
On 4 May 2011, at 17:37, Bob Ippolito <b...@redivi.com> wrote:
> On Wed, May 4, 2011 at 9:13 AM, Ivan Uemlianin <ivan.llai...@gmail.com> wr=
ote:
>> Dear All
>>=20
>> I would like to send POST requests from my mochiweb application to
>> another server. Currently I'm just using:
>>=20
>> Response =3D http:request(post, Request, [], []),
>>=20
>> This works, but only if I start inets first, e.g. with one of:
>>=20
>> inets:start().
>>=20
>> application:start(inets)
>>=20
>> Is there a function within mochiweb I can use instead of starting up
>> another application?
>=20
> 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.
>=20
> -bob
>=20
> --=20
> You received this message because you are subscribed to the Google Groups "=
MochiWeb" group.
> To post to this group, send email to mochiweb@googlegroups.com.
> To unsubscribe from this group, send email to mochiweb+unsubscribe@googleg=
roups.com.
> For more options, visit this group at http://groups.google.com/group/mochi=
web?hl=3Den.
>=20