HTTP status code for bad data
This is exactly what 400 is for. Yes, it’s used for bad HTTP protocol usage, but it’s not exclusively for that purpose.
This is exactly what 400 is for. Yes, it’s used for bad HTTP protocol usage, but it’s not exclusively for that purpose.
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
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
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
No, if the quality parameter is missing q=1.0 is assumed: Each media-range MAY be followed by one or more accept-params, beginning with the “q” parameter for indicating a relative quality factor […] using the qvalue scale from 0 to 1 (section 3.9). The default value is q=1. So the given value is to be interpreted … Read more
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
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
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
The question mainly is whether the parameters defined are part of the resource identifier (URI) or not. if so, then you would use the request parameters otherwise HTTP custom headers. For example, passing the id of the album in a music gallery must be part of the URI. Remember, for example /employee/id/45 (Or /employee?id=45, REST … Read more
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