Tag Archives: browser

jWebSocket on mobile browsers

Questions: I’ve developed a web application which uses jWebSocket. I’ve put it together on an Apache Server and accessing the site with a desktop browser works fine. But it’s not working on mobile browsers, that is, I can see the static website but no dynamic changes are made (using WLAN; on a laptop using the… Read More »

Is there a way to manually post to a rest webservice using a browser

Questions: Is there a way to manually post an xml to a webservice using a browser something like: POST http://url/Endpoint <xml file text> Answers: With browser add-ons – yes. For example “Tamper Data” for Firefox: https://addons.mozilla.org/en-US/firefox/addon/966/ See also “Poster” add-on: https://addons.mozilla.org/en-US/firefox/addon/2691/ Questions: Answers: REST Client plugin Questions: Answers: You could use cURL on the command… Read More »

How to force browser to download file?

Questions: Everything works fine, but only if file is small, about 1MB, when I tried it with bigger files, like 20MB my browser display it, instead of force to download, I tried many headers so far, now my code looks: PrintWriter out = response.getWriter(); String fileName = request.getParameter(“filename”); File f= new File(fileName); InputStream in =… Read More »

PHP files are downloaded by browser instead of processed by local dev server (MAMP)

Questions: Everything was going great until I added AddHandler application/x-httpd-php5s .php to the .htaccess file in my local server’s document root (which I change frequently depending on the site I’m working with). Since I did that when I visit http://localhost:8888 my browser just downloads the index.php and it’s not processed at all, just the raw… Read More »

PHP mobile browser detection?

Questions: I’m in need of a way to detect mobile browsers server-side. I’d like a way that requires me to do little to set up and little to maintain, yet still provide me with accurate detection of (at the VERY least) Android, Mobile Safari and Blackberry browsers, along with alternatives like Opera. I’d like to… Read More »