[erlang-questions] how to know who is the caller id from an httpc:request?

John Kemp john@REDACTED
Wed Apr 3 01:47:34 CEST 2013


On Apr 2, 2013, at 7:10 PM, Brisa Jiménez <brisa.jimenez.f@REDACTED> wrote:

> Hi,
> Another question:
> How to know who is the caller id from an httpc:request?

If you are using a (generic) HTTP server to receive the request, you could set, in the httpc request, the User-Agent HTTP header to a known value and then extract the vaue of the User-Agent HTTP header at your server. Another option would be to set a cookie from the server to client upon first connection, and then send the cookie on all subsequent requests from httpc. 

Depending on what HTTP server technology you're using, there may also be other mechanisms available. What HTTP server are you using?

Cheers,

JohnK

> Thank again!
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list