• 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
FW: request.headerForKey("pc-remote-addr");
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FW: request.headerForKey("pc-remote-addr");


  • Subject: FW: request.headerForKey("pc-remote-addr");
  • From: Bill Reynolds <email@hidden>
  • Date: Sat, 03 Apr 2004 22:01:01 -0800

Although the news is bad I feel a bit of relief knowing "it's not me".  The
suggestion to query an array of candidates is perfect; and when all fail
I'll email myself the entire header.toString() and see what new and
wonderful convention is being used.

Many thanks, I will rest sanely.

-Bill

------ Forwarded Message
From: Chuck Hill <email@hidden>
Date: Sat, 3 Apr 2004 17:26:37 -0800
To: Bill Reynolds <email@hidden>
Cc: <email@hidden>
Subject: Re: request.headerForKey("pc-remote-addr");

I've come to believe that the adaptor writers
(a) Hate each other and never speak
(b) Have a pathological fear of consistency
(c) Hate us

The names of headers vary by adaptor type, version, and maybe even
platform. They've been an ongoing source of frustration over the years.

The only effective solution I've found is to use an array of candidate
names, and check each until you find a non-null match.

Lame but true.

Chuck

On Apr 3, 2004, at 5:12 PM, Bill Reynolds wrote:

> A recent OS upgrade to my OSX Server 'seems' to have broken some code.
>
> I was using "ip_address =
> request.headerForKey("http_pc_remote_addr");" as

------ End of Forwarded Message
_______________________________________________
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.


References: 
 >Re: request.headerForKey("pc-remote-addr"); (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: request.headerForKey("pc-remote-addr");
  • Next by Date: Custom Reporting Question
  • Previous by thread: Re: request.headerForKey("pc-remote-addr");
  • Next by thread: Custom Reporting Question
  • Index(es):
    • Date
    • Thread