HTTP (http)

The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, and hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web. For more detail, see Wikipedia

Elasticsearch: cat nodes API

Use Elasticsearch cat nodes API to understand the state of your Elasticsearch: id, name, IP address, CPU, load, memory, and much more.

Security Training Day 3

My study notes of security training (day 3), including insecure direct references, broken access control, improper input validation, and software best practices.

Security Training Day 2

My study notes of security training (day 2), including some ways of SQL injection, Cross-site scripting (XSS), and XML External Entity (XXE).

Security Training Day 1

My study notes of security training (Day 1), including web thread landscape (Java in particular), security tools, and some Juice shop training answers.

Testing JAX-RS Resources

This article explains how to set up and tear down a Grizzly Server for testing JAX-RS resources, how to create a HTTP request and assert the response using JUnit 4. And finally, the limits of testing API in reality.


This post explains what is JAX-RS Client API and how to use it via Jersey Client API. We will talk about the Maven dependencies, Client, WebTarget, and HTTP response.

Exception Handling in JAX-RS

This post explains exception mapper, how to register it in JAX-RS application programmatically or via annotation, the exception matching mechanism (nearest-superclass), and more.

JAX-RS Param Annotations

This post explains different param annotations in JAX-RS 2.1 and their use-cases, including @QueryParam, @MatrixParam, @PathParam, @HeaderParam, @CookieParam, @FormParam and @BeanParam.

HTTP Methods in JAX-RS

This article explains the common HTTP methods in JAX-RS: annotation @GET, @POST, @PUT, and @DELETE.

Create a HTTP Request in JS

Today, I'll explain how to send HTTP request from your browser. You can achieve that by using builtin JavaScript (XML HTTP Request, or "XHR") or jQuery (1.4, 1.5+).

Git: Communication over HTTP

What happens when Git communicates over HTTP protocol? In this post, I'll intercept the HTTP traffic to discover git-receive-pack, git-upload-pack and more.

Intercept HTTP traffic using ZA Proxy

Today, I'd talk about how to install and configure ZA proxy for intercepting HTTP requests and responses in localhost in macOS.

Cookie Understanding

The 8 different fields in an HTTP cookie.

什么是HTTP代理服务器(HTTP Proxy)?

最近在看一本很有名的关于HTTP的书籍,叫 « HTTP: The Definitive Guide »,以下是第六章“网络代理”的部分翻译。网络代理服务器是介于客户端和服务器之间的中间件,它双向地传送HTTP信息。这一章将讲述所有HTTP代理服务器的类型,对于代理服务器属性的特殊支持,以及一些当你使用HTTP代理时将会遇到的比较棘手的行为。

HTTP: The Web's Foundation

My reading note about book "HTTP - The Definite Guide", part I: The Web's Foundation. After reading this article, you'll understand the definition of HTTP, URL and resources, the flow of messages, and the different status codes in HTTP.