• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IP Address Log from Direct Action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IP Address Log from Direct Action


  • Subject: Re: IP Address Log from Direct Action
  • From: "Jonathan Fleming" <email@hidden>
  • Date: Wed, 24 Sep 2003 03:25:14 +0100

Hi Scott,
I don't know if this is going to be of any value to you, but it might.

Indeed, using the

hKeys = context().request().headerKeys();

call indicates that the "x-webobjects-remote-addr" header key
was not being passed to WebObjects. Instead the new header key
seems to be "remote-addr"

Most of the documentation online still refers to the
"x-webobjects-remote-addr" header key. However, this should correct your problem.


Let me know how you get on and I'll shut up if I'm wrong.

Jonathan F :^)
"We do our best! And when our best is not enough... we do even better."

From: Scott Lopatin <email@hidden>
To: email@hidden
Subject: Re: IP Address Log from Direct Action
Date: Tue, 23 Sep 2003 16:55:20 -0400

Chuck,

I'm testing this deployed.

Where would I get a patched version of the adaptor? I'm using 5.2 and the IP isn't in the header at all!

It seems some people have this working on deployment...

Thanks,
Scott

On Monday, September 22, 2003, at 09:40  PM, Chuck Hill wrote:

Are you testing this in DirectConnect mode? I don't think it works there.
Trying printing out all of the headers and if the IP address is there. It
might not be getting sent or passed along, the Apache mod_webobjects
adaptor does not pass all headers unless you are using a patched version
(or maybe 5.2, I've not checked). I don't recall which ones were missing.
If it is not in the request's headers, no code is going to retrieve it.



Chuck



At 09:16 PM 22/09/2003 -0400, Scott Lopatin wrote:
I have read all the emails about recording IP addresses from visitors.

I've tried all methods:

request().headerForKey("user-agent");
request().headerForKey("remote_host");
request().headerForKey("remote_addr");
request().headerForKey("x-webobjects-remote-host");
request().headerForKey("host");
request().headerForKey("x-webobjects-remote-addr");
request().headerForKey("aRequest._originatingAddress().getHostAddress( )"
);

No luck. I'm trying to record the IP address of the client from a page
which gets the WORequest from a direct action method.

Does anyone know how to properly record this? All I am getting is the
server's address in the originatingAddress value.

Thanks,
Scott

_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev


--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.              http://www.global-village.net
_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev



_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Warning: Request will be REDIRECTED to non-refusing instance
  • Next by Date: Re: Warning: Request will be REDIRECTED to non-refusing instance
  • Previous by thread: Logging File
  • Next by thread: WO, Web service and license
  • Index(es):
    • Date
    • Thread