For a while I have had this code in an active library which works fine:

get request value(string(A4D Request http Version))

The named constant 'A4D Request http Version ' doesn't exist. I think you mean to say you are using the constant 'A4D Response Version', which obviously is a number, since you have to use string() to convert it. A quick look in the 4D Explorer would have shown that in fact the value of 'A4D Response Version' is the number 1. That constant is used by the Active4D shell as an index into the response header arrays.


Since the documentation for 'request info' doesn't mention anything about items whose names are numbers, that would explain why you are getting an empty string back.

In the future, I would be grateful if you would preface your questions with your complete configuration (versions, A4D shell type, etc.) so I have some idea of the context.


but when I use it in a page (not a library) - it returns a blank string unless I do this:

get request info("*http version") (<-- note the asterisk that's difficult to see :-))

That works because it is the correct syntax as documented in the Request Info section of the documentation.


Hope this clears up the mystery.

Regards,

   Aparajita
   Victory-Heart Productions
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com

_______________________________________________
Active4D-dev mailing list
[EMAIL PROTECTED]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to