NetTalk Central

Author Topic: Server variables  (Read 4904 times)

oeb

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Server variables
« 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.
« Last Edit: November 14, 2007, 02:30:52 AM by oeb »
--------------------
Ole

pcrafton

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Email
Re: Server variables
« Reply #1 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

oeb

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Re: Server variables
« Reply #2 on: November 15, 2007, 12:23:31 AM »
Thanks, I didn't think about that.
--------------------
Ole

oeb

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Re: Server variables
« Reply #3 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.
--------------------
Ole