×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2008
    Location
    Port Elizabeth, South Africa
    Posts
    37

    Question HTTP X headers added by the Proxy - Country Code?

    The proxy server used to host Web Apps adds a few key HTTP_X headers. The most useful of these is the HTTP_X_Forwarded_For header that holds the IP address the proxy sees for the mobile device.

    I noticed another header called HTTP_X_Country_Code and was expecting it to contain the 2 or 3 letter country code, but it had a number. In my case with a test web app and being in South Africa, it held the number "190" and I cannot work out how this relates to any known country code.

    Is this particular header non-functional and should I just use the IP in the Forwarded_For header to work out the country?

    Thanks,
    Stephen

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: HTTP X headers added by the Proxy - Country Code?

    Hi Stephen,

    I'm trying to find this out for you.

    Br,
    Ilkka

  3. #3
    Registered User
    Join Date
    Jun 2008
    Location
    Port Elizabeth, South Africa
    Posts
    37

    Re: HTTP X headers added by the Proxy - Country Code?

    I did hear back regarding this during the Nokia World 2011 Hackathon. If I remember correctly what was said was that the Country Code header is for internal use only for now.
    I would imagine that v1.5 of the dev tools that expose Location will solve this problem nicely anyway. I'm looking forward to trying it out.

  4. #4
    Registered User
    Join Date
    Oct 2009
    Posts
    635

    Re: HTTP X headers added by the Proxy - Country Code?

    Quote Originally Posted by sperelson View Post
    If I remember correctly what was said was...
    Yes you remember correct Stephen.
    What was said is that "the Country Code is proprietory and for internal use only"
    Good news is that there was also talk that this might change in future, Looking forward to seeing how this changes in future versions.

Similar Threads

  1. Replies: 2
    Last Post: 2010-06-23, 11:33
  2. How to get the country code or country name
    By gpalvia in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-02-26, 18:18
  3. country code
    By vilastalewale in forum Mobile Java General
    Replies: 1
    Last Post: 2007-02-22, 03:20
  4. Replies: 0
    Last Post: 2003-09-26, 15:07
  5. Replies: 2
    Last Post: 2003-04-07, 11:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×