Using inets http client

Ingela Anderton <>
Tue Jun 7 14:52:39 CEST 2005


Michael McDaniel wrote:
> > > I suggest adding
> > > 			io:format'~p~n', [RequestId]) ,
> > >
> > > just before the call to http_wait_with_timeout(RequestId, 15000) in
> > > get_url/1 and see what gets printed.
> > 
> > #Ref<0.0.0.68>
> > 
> > I'm not sure how to interpret this value...
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This value should not be interpreted. It is an erlang reference as
returned by the bif make_ref(). You should only use this
value to pattern match against response messages from the http-client
to be able to differentiate between responses if your process makes
several asynchronous request before receiving the responses.

-- 
/m.v.h Ingela - OTP team



















More information about the erlang-questions mailing list