# request
-
Nodejs _ 2020-05-06
The simplest HTTP proxy with custom headers
These days I had an interesting problem to solve. At work, on our staging environment, we have basic authorization. It works really well but for some older versions of Chrome we experienced a weird issue. The browser did not pass the authorization header. The app runs fine but as soon as it does a fetch request to a local endpoint the request fails with 401 not-authorized error. In the modern browsers that's not happening because the browser kinda knows that we came here with basic auth and automatically includes
authorization: basic ...header. -
JavaScript _ 2017-10-27
You are managing state? Think twice.
Recently I started questioning the state management in React applications. I’ve made some really interesting conclusions and in this article I’ll show you that what we call a state management may not be exactly about managing state.
-
Architecture _ 2015-12-04
Hacking a weird failing HTTP request
I recently finished watching Mr. Robot. If you didn’t check out the show please do. Last few days I felt like I’m hacking something. Just like Elliot in MR. Robot. This blog post is about fixing a weird bug. Really strange problem with a failing HTTP request.
-
JavaScript _ 2015-11-29
Enforce standards while submitting a pull request
GitHub’s pull requests are an important part of my/our development process. That’s why I was thinking about creating a template that will enforce the standards.
-
JavaScript _ 2014-02-23
Cross-browser handling of Ajax requests
This blog post is part of series about AbsurdJS. I'll continue filling the library with small and self organized black boxes. In the last article we talked about creating a JavaScript router. This time we will go through the process of making Ajax requests.
-
PHP _ 2013-10-31
PHP: please, please, clear my cookies
I'm currently working on a JavaScript application which is using the facebook API. There are some things which I need to pass from one page to the other. So, I decided to use cookies. The storing works like a charm, but the deleting doesn't. I needed one hour to find the exact problem.
-
ActionScript _ 2013-06-11
A strange IOErrorEvent.IO_ERROR event dispatched
Really simple GET request from a flex based application. However it fails if GET parameters are passed.
-
PHP _ 2013-06-05
mod_rewrite, one simple rule and two stupidly lost hours
Ok, I should admit that mod_rewrite and regular expressions are not my strongest part. Today - as every other day I realize how little knowledge I have. Actually it's good to have such moments. I lost almost two hours fighting with a really really simple mod_rewrite rule in my .htaccess file.
-
PHP _ 2012-02-12
MySQL vs JSON file data storing
I'm not exactly a performance perfectionist, but currently I'm working on a tool which will be used in a large system. It will deliver texts to a multi-language environment and there will be several sites/apps which will performe big amount of request to it. It is the right moment for me to choose how to speed up my code and the work of the tool overall.
-
Other _ 2010-08-17
Reported Attack Page in Firefox
Before a couple of days the code of my site was injected with some milware script code. In this article I will advice you how to remove this message.