What specific use cases call for BOSH over WebSockets and long-polling? [closed]

First let me address WebSockets readiness: WebSockets implementation of the Hixie-76 protocol are shipped and enabled by default in Chrome, Safari and iOS (iPhone and iPad). The Hixie-76 protocol is also shipped but disabled by default in Firefox 4 and Opera 11. The web-socket-js project is a Flash shim/polyfill that adds WebSocket (Hixie-76) support to … Read more

gradle – download and unzip file from url

Let’s say you want to download this zip file as a dependency: https://github.com/jmeter-gradle-plugin/jmeter-gradle-plugin/archive/1.0.3.zip You define your ivy repo as: repositories { ivy { url ‘https://github.com/’ patternLayout { artifact ‘/[organisation]/[module]/archive/[revision].[ext]’ } // This is required in Gradle 6.0+ as metadata file (ivy.xml) // is mandatory. Docs linked below this code section metadataSources { artifact() } } … Read more

What is the purpose of the HTTP header field “Content-Location”?

In response to a GET request, Content-Location in HTTP can be used when a requested resource has multiple representations available, e.g. multiple languages. The selection of the resource returned will depend on the Accept headers in the original GET request. Usually, the location specified in the Content-Location header is different to the location specified in … Read more

What is the HTTP method PURGE?

There is an HTTP PURGE method, though it is not defined in the HTTP RFCs (which do allow for custom methods beyond the standard defined methods). Some HTTP servers and caching systems actually do implement PURGE, for instance Squid and Varnish: Squid: How can I purge an object from my cache? Varnish: Purging and banning … Read more

Can subdomain.example.com set a cookie that can be read by example.com?

Yes. If you make sure to specify that the domain is .example.com, then *.example.com and example.com can access it. It’s that principle that allows websites that issue cookies when somebody goes to www.website.com to access cookies when someone leaves off the www, going to website.com. EDIT: From the PHP documentation about cookies: domain The domain … Read more

HTTP and HTTPS iframe

It is generally bad practice to embed an iframe with content served over HTTPS within a page served over plain HTTP (or mix content). The reason for this is that there’s no good way for the user to check they’re using the HTTPS site they intend (unless the user really wants to check the source … Read more

What is protocol and host combined called?

I think the term you may really be looking for is origin, as in RFC 6454. An origin isn’t just scheme+host, but scheme+host+port, and URLs like https://example.com aren’t actually just scheme+host — because they express a (default) port too: 443, the default TLS port — just as in http://example.com there’s a built-in expression that the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)