CORS cookie credentials from mobile WebView loaded locally with file://

I realize this question is old, but I figured I’d throw in on it anyhow. In the case of CORS requests, the browser preflights them. What this means is – in spite of whatever $.ajax() method you are using, an OPTIONS request is sent to the server. What this preflighted OPTIONS request is actually doing … Read more

Using plus sign in custom internet media types (MIME types)

The procedure for registering new suffixes is now defined in http://trac.tools.ietf.org/html/draft-ietf-appsawg-media-type-regs-14#section-6. “+json” will be defined in a separate document; right now: http://trac.tools.ietf.org/html/draft-ietf-appsawg-media-type-suffix-regs-02#section-3.1 And no, you are not supposed to have multiple subtypes there.

Developing a simple Windows system tray desktop app to consume a .NET web service

Keep it all in .NET. You can easily write a Windows Forms application to display a tray icon and display notifications as and when something happens in the web service (you’d probably need a timer to do the polling). There are plenty of articles around that will show you how to do this. Here’s one … Read more

Using JSON to Serialize/Deserialize TimeSpan

I tried #Jessycormier’s method and it didn’t work for me. I ran DataContractJsonSerializer to see what it would generate and I found that gave me a value that looked more like this. {“PassedTimeSpan”:”P1DT2H3M4S”} The value shown above was for 1 day, 2 hours, 3 minutes, and 4 seconds. So it looks like format is: [-]P[{days}D][T[{hours}H][{min}M][{sec}S]] … Read more

tech