Syntax for ETag?

Try ETag: “4ae413bd”. The value of an ETag must follow the ABNF form: entity-tag = [ weak ] opaque-tag weak = “W/” opaque-tag = quoted-string quoted-string = ( <“> *(qdtext | quoted-pair ) <“> ) qdtext = <any TEXT except <“>> quoted-pair = “\” CHAR CHAR = <any US-ASCII character (octets 0 – 127)> TEXT … Read more

Receive an HTTP 400 error if %2F is part of the GET URL in JBOSS

Finally figured out the cause of this (both for JBoss and Apache). Both applications intentionally reject URIs with an encoded slash (%2F for / and %5C for \) to prevent possible security vulnerabilities. Links: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0450 http://securitytracker.com/id/1018110 (Look at section 4. Solution) And here are the instructions they provide for enabling this behavior in JBoss: Note: … Read more

Is TCP protocol stateless?

You can’t assume that any stacked protocol is stateful or stateless just looking at the other protocols on the stack. Stateful protocols can be built on top of stateless protocols and stateless protocols can be built on top of stateful protocols. One of the points of a layered network model is that the kind of … Read more

Flutter – http.get fails on macos build target: Connection failed

Per my comment on the other answer, you should not use the Xcode capabilities UI for this. It will not correctly handle the two separate entitlement files in a Flutter project. You need to add: <key>com.apple.security.network.client</key> <true/> to macos/Runner/DebugProfile.entitlements and macos/Runner/Release.entitlements. This is documented here and here.

CORS request with Preflight and redirect: disallowed. Workarounds?

The original standard does preclude redirect after a successful CORS preflight. Quoting ยง 7.1.5.3: This is the actual request. Apply the make a request steps and observe the request rules below while making the request. If the response has an HTTP status code of 301, 302, 303, 307, or 308 Apply the cache and network … Read more

Must websockets have heartbeats?

The RFC 6455, the current reference for the WebSocket protocol, defines some control frames to communicate state about the WebSocket: Close: 0x8 Ping: 0x9 Pong: 0xA Ping and Pong are used for heartbeat and allows you to check if the client is still responsive. See the quote below: A Ping frame may serve either as … Read more

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