|
That can't be it since the example that motivated me to ask the question is that I was in a non-English-speaking country and not using a VPN.
|
|
|
|
|
Read RFC 2616[^] in Section 14 Header Field Definitions[^] navigate down to 14.4 Accept-Language
Or you can just ask a CGI script to print all the environment variables:
CGI Programming 101: Chapter 3: CGI Environment Variables[^]
Various browser implementations of Javascript might also provide interfaces to get the language:
navigator.Language
navigator.systemLanguage
navigator.userLanguage
navigator.browserLanguage
20+ years ago I use to play around with the PHP language on Apache, and I've always liked the phpInfo page that was installed by default. I've used it for years to view my browser environment:
PHPInfo()[^]
Best Wishes,
-David Delaune
|
|
|
|
|
That's a good one. Here's mine dumped from console:
Navigator
appCodeName: "Mozilla"
appName: "Netscape"
appVersion: "5.0 (X11)"
buildID: "20181001000000"
clipboard: Clipboard { }
cookieEnabled: true
credentials: CredentialsContainer { }
doNotTrack: "unspecified"
geolocation: Geolocation { }
hardwareConcurrency: 12
language: "en-US"
languages: Array [ "en-US", "en" ]
maxTouchPoints: 0
mediaCapabilities: MediaCapabilities { }
mediaDevices: MediaDevices { ondevicechange: null }
mimeTypes: MimeTypeArray { length: 0 }
onLine: true
oscpu: "Linux x86_64"
permissions: Permissions { }
platform: "Linux x86_64"
plugins: PluginArray { length: 0 }
product: "Gecko"
productSub: "20100101"
serviceWorker: ServiceWorkerContainer { controller: null, ready: Promise { "pending" }, oncontrollerchange: null, … }
storage: StorageManager { }
userAgent: "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0"
vendor: ""
vendorSub: ""
webdriver: false
<prototype>: NavigatorPrototype { vibrate: vibrate(), javaEnabled: javaEnabled(), getGamepads: getGamepads(), … }
|
|
|
|
|
Hmmm,
What browser are you on? Firefox? I didn't know about the languages: Array and don't see it mentioned in BP47[^]. I see it marked as experimental in the Mozilla docs.
|
|
|
|
|
Randor wrote: What browser are you on? Firefox?
FireFox was the first, but here is Google Chrome and it's there also...
Navigator {vendorSub: "", productSub: "20030107", vendor: "Google Inc.", maxTouchPoints: 0, hardwareConcurrency: 12, …}
appCodeName: "Mozilla"
appName: "Netscape"
appVersion: "5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36"
clipboard: Clipboard {}
connection: NetworkInformation {onchange: null, effectiveType: "4g", rtt: 50, downlink: 1.7, saveData: false}
cookieEnabled: true
credentials: CredentialsContainer {}
deviceMemory: 8
doNotTrack: null
geolocation: Geolocation {}
hardwareConcurrency: 12
keyboard: Keyboard {}
language: "en-US"
languages: (2) ["en-US", "en"]locks: LockManager {}
maxTouchPoints: 0
mediaCapabilities: MediaCapabilities {}
mediaDevices: MediaDevices {ondevicechange: null}
mediaSession: MediaSession {metadata: null, playbackState: "none"}
mimeTypes: MimeTypeArray {0: MimeType, 1: MimeType, 2: MimeType, 3: MimeType, 4: MimeType, 5: MimeType, application/futuresplash: MimeType, application/pdf: MimeType, application/x-google-chrome-pdf: MimeType, application/x-nacl: MimeType, application/x-pnacl: MimeType, …}
onLine: true
permissions: Permissions {}
platform: "Linux x86_64"
plugins: PluginArray {0: Plugin, 1: Plugin, 2: Plugin, 3: Plugin, Chrome PDF Plugin: Plugin, Chrome PDF Viewer: Plugin, Native Client: Plugin, Shockwave Flash: Plugin, length: 4}
presentation: Presentation {receiver: null, defaultRequest: null}
product: "Gecko"
productSub: "20030107"
serviceWorker: ServiceWorkerContainer {controller: null, ready: Promise, oncontrollerchange: null, onmessage: null, onmessageerror: null}
storage: StorageManager {}
usb: USB {onconnect: null, ondisconnect: null}
userActivation: UserActivation {hasBeenActive: true, isActive: true}
userAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36"
vendor: "Google Inc."
vendorSub: ""
wakeLock: WakeLock {}
webkitPersistentStorage: DeprecatedStorageQuota {}
webkitTemporaryStorage: DeprecatedStorageQuota {}
xr: XRSystem {ondevicechange: null}
__proto__: Navigator
|
|
|
|
|
Looks like MS Edge has it too:
[object Navigator]: {activeVRDisplays: Array, appCodeName: "Mozilla", appName: "Netscape", appVersion: "5.0 (Windows NT 10.0; Win64; x64; ServiceUI 14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763", cookieEnabled: true...}
activeVRDisplays: Array
appCodeName: "Mozilla"
appName: "Netscape"
appVersion: "5.0 (Windows NT 10.0; Win64; x64; ServiceUI 14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763"
cookieEnabled: true
credentials: CredentialsContainer
doNotTrack: null
gamepadInputEmulation: "keyboard"
geolocation: Geolocation
hardwareConcurrency: 2
language: "en-US"
languages: Array
0: "en-US"
maxTouchPoints: 0
mediaDevices: MediaDevices
mimeTypes: Array
msManipulationViewsEnabled: true
onLine: true
platform: "Win32"
plugins: Array
product: "Gecko"
productSub: "20030107"
|
|
|
|
|
Yeah,
I looked at it on the browser compat list: navigatorLanguage.languages - DOM - W3cubDocs[^]. I don't do any javascript but I try to keep up with everything.
It's getting harder to keep up with all the latest technologies... everything is moving so fast.
|
|
|
|
|
Randor wrote: It's getting harder to keep up with all the latest technologies... everything is moving so fast.
Yeah, it has been crazy for a while now.
I guess when Chrome* wins it will all be easier.
*Not looking forward to it. I am a FireFoxer.
|
|
|
|
|
Heh,
I wrote my own web browser about 10 years ago. it's not a fork of Chrome and not a Fork of Firefox (or any other browser), but I did use Webkit.
You wanna see it?
|
|
|
|
|
Randor wrote: You wanna see it?
Yes, is it in GitHub, possibly?
|
|
|
|
|
raddevus wrote: Yes, is it in GitHub, possibly? No, I am developing mostly from an air-gapped workstation these days. I've only put a few simple trash projects on Github, none of my large projects.
I've uploaded it to OneDrive:
SandCastle[^]
You might need to install one of the Visual Studio C++ runtimes[^]. I probably didn't static link this build.
Keep in mind that I wrote this sometime around 2009-2010 so it is missing a decade worth of security patches for zlib, openssl, libicu, jpeg and CoreFoundation. Some of the security features were actually at the bleeding edge back then... I was using mandatory low integrity levels and Job Objects[^] before Google did this in the Chrome browser.
There are some missing components, this browser was paired with a sandboxing device driver that redirected anything the browser wrote to disk into another virtual disk.
Here is some food for thought: If you use the browser long enough it will eventually crash. The crash is occuring in CoreFoundation within CFString in the same bug/location that was used world-wide for compromising phones via SMS text messages.
Don't use this for anything important. Oh, and after you get done using it, you can delete the folder it creates at %userprofile%\AppData\LocalLow
Best Wishes,
-David Delaune
|
|
|
|
|
May I download a copy too?
Not going to use it, just curiosity to see how it looks like.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Nelek wrote: May I download a copy too? Sure, I don't care. I did check to see if it rendered codeproject.com properly. Keep in mind it's missing a decade worth of HTML5 development, not everything will render properly.
Nelek wrote: Not going to use it, just curiosity to see how it looks like. I think the other program I posted above has fully custom drawn windows, the web browser isn't really that pretty, it was mostly a netsec complementary tool on a much larger project.
I am actually surprised these even work on Windows 10, these programs were developed on Windows 7 using Visual Studio 2008. Although it does look like I recompiled them again with Visual Studio 2013 at a later date.
Best Wishes,
-David Delaune
|
|
|
|
|
You mean the torrent App?
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
The torrent app is aesthetically beautiful. People will probably look at it and think it has a nice looking GUI.
The browser on the other hand is actually more technically interesting as it's not Chrome or Firefox based and uses a different render/back-end and has very different internals.
EIDT by Nelek.
I read it and did the work for you.
|
|
|
|
|
I read it and did the work for you (but if you wanted to stay a bit more, so not only 1 person read it, I can restore if you want)
And don't worry. I am not like this
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I also saw it. Please send 2 bitcoins to...
|
|
|
|
|
Greg Utas wrote: I also saw it.
We know where you live Greg.
I don't really mind, I am glad it worked out for him and his family. I've kept all of our e-mail discussions archived in my gmail account in case I ever need it.
modified 10-Oct-20 16:14pm.
|
|
|
|
|
It will depend on the captcha and how the code for it was written.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
I love it when the captcha asks for you to select all tiles with bicycles and all the tiles to be selected only have cars, with no skip button. It works, but makes you wonder.
|
|
|
|
|
The bicycles are all in the car boots (trunks).
|
|
|
|
|
OK, I see that Firefox has a setting for language. It all makes sense to me now.
|
|
|
|
|
Underline it.
Scrawl it in bold.
The Expanse is back![^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
With this long time gap, I have forgotten the rest, have to revise before seeing a new season.
|
|
|
|
|
I had to do that before season 4 as well!
I'm just glad I spotted it - I was about to start rereading all the books, and that might have spoiled it if I knew them too well ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|