NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: oeb on November 14, 2007, 02:23:12 AM

Title: Server variables
Post by: oeb on November 14, 2007, 02:23:12 AM
I'm aware of p_RequestData.FromIP, but is it possible to request typical server variables like REMOTE_HOST,REMOTE_ADDR,SERVER_URL etc. in Nettalk? Will it do a reverse DNS look-up of the IP so REMOTE_HOST is returned as text? Much of this information is of course available in p_RequestData.DataString, but it would be more practical to access the data individually.
Title: Re: Server variables
Post by: pcrafton on November 14, 2007, 06:11:39 AM
The nettalk object (netsimple) has NETOPTIONS DLL functions you can use. Checkout the Common Features (third item in the docs page). You may have to have an netsimple object on the webserver and exchange a poll or something with requestors to get tthe information you need.


Paul
Title: Re: Server variables
Post by: oeb on November 15, 2007, 12:23:31 AM
Thanks, I didn't think about that.
Title: Re: Server variables
Post by: oeb on November 16, 2007, 12:42:18 AM
I suppose what I really need is a reverse DNS lookup, and I can't see that in the list. So I guess that will require another tool.