browser

How can I fool a site that looks at the JavaScript object 'navigator' to see that I'm not on Windows?

I am trying to a website, however, it only works under Windows and Mac because they use the use navigator.platform from JavaScript to find out the architecture I run on. Of course, they also use the browser's user agent, but that was easy to spoof. Here is the .js in question: http://pastebin.com/f56fd608d. The code responsible for brow...

Check if a browser supports a specific MIME type?

How can i check if the browser supports a specific mime type with php? ...

Doubt in browser server interaction.

Suppose I click on a link to website A on a page and just before the current page gets replaced, I click on a different link to a different website say B. What happens to the request that was sent to website A? Does the webserver of site A reply back and the browser just rejects the HTTP reply? ...

How do web browsers execute and process requests?

I would like know how browser executes/processes the request. I would like to know this because knowing how it works will help me understand how better web programming can be done which meets performance goals using browser features. How browsers download CSS, JS and Image files? Does it download one resource at a time or multiple? How...

Browser detection and addClass

This doesn't work if( $.browser.opera ){ $("body").addClass('opera'); } why? ...

Automatic generation of a website "token" for SSL authenticate on user's first visit on an Apache2 server.

TLDR: I'm looking for a software based two-factor authentication system. Summary: I am trying to find a solution equivalent to a SSL client side certificate, except that said certificate would optimally be generated at the first connection of the browser to the server. Long version: I want to automatically generate a security token usi...

XPCOM support in Android webkit browser?

Does the Android WebKit supports the XPCOM framework or NPRuntime API`s as like Firefox? How to implement JavaScript in the Android WebKit plug-in? Update: I am writing a media player plug-in for the Android WebKit browser and my plug-in needs to get the command from the web page through JavaScript (some actions like play/pause/stop/re...

How to determine the Windows default browser (at the top of the start menu)

How can I determine the Windows default browser (at the top of the start menu)? I am using VB6 but can probably adapt other code no problem. There are similar questions on Stack Overflow, but they seem to provide incorrect answers. For instance the key HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\ lists both Internet Explorer...

How to access devices on a client PC from a browser

What are the various ways to access devices on client PC - a barcode reader, a scanner, etc. - from a browser? I realize my users may need a plugin. These devices may have an API that is specific to their device; I would like to exploit their API if available (maybe Java, maybe C, maybe command line). ...

How can I test a browser to see if it supports 128-bit encryption?

I have been given the task of finding a replacement for a piece of old code. I'm assuming it tested to see if the browser supports 128-bit encryption. Here's the old code: (I purposely split the link into 4 lines) http://www.verisign.com/update-cgi/outPage.exe ?good=../docs/html/good.html &nsbad=../docs/html/upgradeNSonly.html &ie2=../d...

Images caching in browser - app-engine-patch aplication

Hi, I have a little problem with caching the images in the browser for my app-engine aplication I`m sending last-modified, expires and cache-control headers but image is loaded from the server every time. Here is the header part of the code: response['Content-Type'] = 'image/jpg' response['Last-Modified'] = current_time.strftime('%a, ...

Browser Tab/Window tracking pattern?

Is there an accepted pattern for tracking that a page is being loaded by the same tab/window? There are certain processes (like stepped submission processes), which can greatly benefit from a ability to verify that the same tab is asking for execution. For example, there are places where (between steps) we store intermediate data in me...

Differences between methods of reloading pages

window.location.reload() history.go(0) window.location.href=window.location.href I noticed a website commenting that all 3 of these methods could be used to reload a page. Not content to trust it, I tried all 3 methods in IE8, FF3, and Opera 10. I noticed firefox performed a cache reload instead of a true reload for history.go(0), bu...

a c++ Google chrome event listener

can anyone help me on how to connect to google chrome. i would like to build a standalone c++ application(probably a dll) that would list events done by the browser.Probably like the BHO implementation of IE. can anyone give the first thing or steps to do about it?! thanks alot:) help much appreciated PS: i already have known that go...

Why doesn't Firefox redownload images already on a page?

Hello, i just read this article : https://developer.mozilla.org/en/HTTP_Caching_FAQ There's a firefox behavior (and some other browsers i guess) i'd like to understand : if i take any webpage and try to insert the same image multiple times in javascript, the image is only downloaded ONCE even if i specifiy all needed headers to say "do...

Browser rendering XSLT vs PHP rendering XSLT

I use XML and XSLT in my current project and I would like to know if it's good to let the browser render the XML into HTML with stylesheet instead to use something like the PHP xsltprocessor. One main reason I use the Browser xslt processor is to allows API to access my XML data in a near future. So I want the transformation client-side...

how to embed qtwebkit in non-qt windows application?

I want to embed qtwebkit in my pure c windows GUI application. Are there any examples, sample code on how to do this or is it just not possible? I know its very easy to do inside a QT application but I want to keep my development in C (which can be compiled with a free c compiler). (searched google for several days without any luck). ...

Prevent an HTTP client from hitting a server with cache (iphone)

Ok, I'm confused. I'm trying to send back the magic headers from my server that will prevent a client from hitting the server again until a resource is stale. I understand how ETag or Last-Modified works (Validation) - the client will ALWAYS still hit the server, and the server needs to validate the date or etag against the current val...

http/http traffic analyzer

i would like to develop a c++ application that would list all url accessed with its response time within the pc. this probably would be transparent to the user, so it would be a dll. can anyone gve me some sample codes or tutorials on th said matter. or any tips and suggestion?!.. thanks alot:)) ...

Is it possible to do this on the Android and iPhone? (for mobile developers)

Embed a browser inside the application. When the user navigates to a desired page, he pushes a button to "set" this page. Now, the application gets the URL of this page! How hard is this to do on the Android and iPhone? ...