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

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


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

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
part of a security process when first creating a session.

I suddenly stopped acquiring the users ip address after an upgrade.  It
turned out that the key went from "http_pc_remote_addr" to now being
"pc-remote-addr".  Changing my code wasn't difficult, but I'm concerned what
other changes to the application server software, web server (or whatever
got updated in the Auto-Update process) might secretly be breaking my code.

My question is really this; are header 'keys' consistent?  Can I safely bank
on "pc-remote-addr" being there till death do me part?

-Bill Reynolds
_______________________________________________
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.


  • Follow-Ups:
    • Re: request.headerForKey("pc-remote-addr");
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Two actions with one form submition!
  • Next by Date: Re: request.headerForKey("pc-remote-addr");
  • Previous by thread: Re: Two actions with one form submition!
  • Next by thread: Re: request.headerForKey("pc-remote-addr");
  • Index(es):
    • Date
    • Thread