http code 304 in browser - 200 in IIS logs

I do a request in IE 11 to a static image, eg https://blabla/image.png. I notice that IE developer tools says HTTP response code 304. So I assume this request comes from the browser cache and it has not hit the server. That makes sense, because the f...
more »

2017-09-29 10:09 (0) Answers

Make HTTP request from Cadence SKILL program?

Is it possible for Cadence SKILL code to make an HTTP request? If so, how? I have Googled and read the SKILL manuals I can find with no clear answer. I found this integration with a Python program which suggests that external programs can be called....
more »

2017-09-27 22:09 (0) Answers

How to get HTTP URL of file uploaded to FTP server

Below is my code to upload file to other server , $ftp_server="host"; $ftp_user_name=""; $ftp_user_pass=""; $file = "referesh.php";//tobe uploaded $name = "diff_adtaggeneration"; $remote_file = $name."/referesh.php"; // set up basic connection $con...
more »

2017-09-26 06:09 (2) Answers

Response to a PATCH request

Suppose I have an endpoint /api/todos and I make a PATCH request to change one of the todos. Does it ever make sense for my PATCH request to have in the response body the list of all of the todos? Is there any specification that I can read about thi...
more »

2017-09-25 16:09 (2) Answers

Cache control for single-page application

Let's say I want to implement a single-page application which replies to every request with a single static HTML file, so that client side-code can handle the rest. Now, if the user opens two URLs belonging to my app in succession, even if they repr...
more »

2017-09-21 23:09 (0) Answers

Who sets the cache time for JS and CSS resources?

I have a doubt about who is managing my cache of js/css files. I looked at HTTP headers of these files and I saw: Date:Thu, 21 Sep 2017 08:47:38 GMT Server: Apache/2.4.25 (Win32) PHP/7.0.18 Last-Modified: Tue, 02 May 2017 15:36:29 GMT ETag: "4c01-54...
more »

2017-09-21 10:09 (0) Answers

Enforce serial requests in asyncio

I've been using asyncio and the http requests package aiohttp recently and I've run into a problem. My application talks to a REST API. for some API endpoints it makes sense to be able to dispatch multiple requests in parallel. Eg. sending differ...
more »

2017-09-19 02:09 (0) Answers

@HostListener listening on "window"

can we make Angular2 @HostListener listen to "window"? not to window or document event, because I want to make smooth animation based on event but not waiting value from event.. @HostListener('window', ['$event']) alwaysListeningAlwaysUnderstandin...
more »

2017-09-18 08:09 (0) Answers

Setting 'response headers' on a 'file://' request

I am writing an Apache Cordova app (v7.0.1). Let's imagine that in my index.html, I reference some large JS library big-boy.js (300kb). The native WebView never caches this file, and loads it each time adding to latency. If it was a remote resourc...
more »

2017-09-18 02:09 (0) Answers

Is it safe to auth user against https server?

Our application is using client/server architecture, it's running on windows. Our users need to login the client with user/password via http(or https in future), and then obtain their permissions. Previously we use http protocol, so the contract be...
more »

2017-09-16 17:09 (1) Answers

a checker of links in python

I have to create a function in python which searches links in an HTML page and then for every link, check if the link is broken or not. Firstly I've created a function which searches every link (broken or not), no problem and stores them in a array ...
more »

2017-09-16 16:09 (2) Answers

Parallel HTTP requests in Angular 4

I am building a simple weather app that uses a REST service to display current weather data in any city entered by the user. The dashboard page should display the current weather in ~5 cities specified by the user. So my question is - given an arra...
more »

2017-09-15 23:09 (2) Answers

HttpResponseMessage Create HttpStatusCode 550

At Http Response Common there is 550 Error, but I can not find it at HttpStatusCode Enumeration. JavaScriptSerializer sr = new JavaScriptSerializer(); OTPOutError_Model oError = new OTPOutError_Model(); oError.message = "Business exception. "; var ...
more »

2017-09-15 12:09 (1) Answers

Website padlock error : insecure form call

I installed a SSL certificate on my website so it's something like https://mywebsite.com But there is a form action something similar to that http://email.website.com which is the path to my mail service from arpreach . So how to fix that ? Shoul...
more »

2017-09-15 08:09 (0) Answers

ng-repeater http get before cached

I have a ng-repeater that draws 3 maps. The maps can use the same geodata (eg provinces 2015). The repeater does the same request to the geo-server before the data can be stored in local storage. How can I prevent that from happening? ...
more »

2017-09-12 21:09 (0) Answers