[Opa] how to obtain some information about the HTTP client

Andreas Rozek A.Rozek at gmx.de
Fri Aug 19 00:49:30 EDT 2011


Hello!

I'm completely new to OPA, just trying to make my very first (but own!) steps - thus this question (and the next ones I will certainly ask) may look to you like complete nonsense - but, please, be patient with me: I'm trying to learn!


It's often a good idea to know about the user's HTTP client - this is why I would like to figure it out. But how do I do that?

There is a stdlib.web.client with some interesting definitions (like environment_interface_engine and similar) but which function returns such a value?

Let's say, I get such a value somehow, how do I convert it into a string? Is there same "magic" which converts record keys into strings? Or will I have to set up a pattern matching construct which yields a literal name depending on a certain record key?

Another issue: is it my Safari's fault? Or is it common, that (within the API docs) very often the decriptions do not belong to the type/function definition next to them? To give an example (from the stdlib.web.client description):

type JsFunction = external
The browser runs on a Macintosh (either MacOS X or Classic but not iPhone OS).
This does not look correct, does it?

But the docs are full of these wrong associations!

Thanks in advance for your effort!

Kind regards,

Andreas Rozek         Phone:  ++49 (7031) 436 5784
Brunnenstraße 30/2    Mobile: ++49 (151) 172 879 18
D-71032 Böblingen     EMail:  A.Rozek at gmx.de
Germany               URL:    http://www.Andreas-Rozek.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.owasp.org/pipermail/opa/attachments/20110819/97a2d4f9/attachment.html 


More information about the Opa mailing list