Implementing HTTP Requests with Apache HttpClient in Java
Project Dependencies
To utilize Apache HttpClient in your Java project, include the following Maven dependency:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.13</version>
</dependency>
Basic HTTP Request Implementation
Here ...
Posted on Fri, 10 Jul 2026 16:04:30 +0000 by franknu
Understanding Cross-Site Scripting Fundamentals
This article covers foundational web concepts essential for understanding cross-site scripting (XSS) vulnerabilities — focusing on HTTP mechanics, client-side state management, and browser scripting behavior.
HTTP Communication Essentials
Request Methods
GET: Retrieves resources without side effects. Parameters appear in the URL query string a ...
Posted on Sat, 04 Jul 2026 16:38:25 +0000 by madonnazz
Quick Start with Django: Building a Web Application from Scratch
To begin building a Django web application, first ensure Python is installed and configured on your system. Then install Django using pip:
pip install Django
Verify the installation by checking the version:
python -m django --version
Creating a Django Project
It’s critical to initialize the project from the correct directory. Avoid creating ...
Posted on Thu, 02 Jul 2026 16:21:55 +0000 by czukoman20
Building a Simple Web Scraper with Node.js for Offline Documentation
To create an offline archive of web-based documentation, we can leverage Node.js core modules. This approach relies on the native http module for network requests, the fs module for saving files, and ES6 Promises to manage asynchronous operations.
1. Extracting URLs via the Browser
The first step involves identifying the specific pages to downl ...
Posted on Fri, 26 Jun 2026 17:09:46 +0000 by RussellReal
Common HTTP Content-Type Headers and Their Use Cases
application/x-www-form-urlencoded
This is the default encoding standard for traditional HTML forms. Data is serialized into a query-string-like format where each parameter follows the parameterName=parameterValue syntax. Special characters are percent-encoded.
POST /submit-entry HTTP/1.1
Host: api.example.org
Content-Type: application/x-www-for ...
Posted on Wed, 24 Jun 2026 16:38:57 +0000 by Tedglen2
Python Requests Library for HTTP Operations
Installation
Install the library via pip:
pip install requests
For unstable networks, specify a mirror source:
pip install requests -i https://pypi.mirrors.ustc.edu.cn/simple/
Available mirrors include:
Tsinghua University: https://pypi.tuna.tsinghua.edu.cn/simple
Alibaba Cloud: http://mirrors.aliyun.com/pypi/simple/
University of Science an ...
Posted on Tue, 23 Jun 2026 16:28:07 +0000 by bobbfwed
Core Concepts in HTTP, Tomcat, Nginx, and Decoupled Web Architecture
JavaWeb Fundamentals
JavaWeb encompasses the technology stack used to build web-based applications using the Java programming language. The standard architecture for these applications is the Browser/Server (B/S) model. In this paradigm, the client requires only a web browser, while all application logic and data storage are maintained on the ...
Posted on Sun, 21 Jun 2026 17:04:11 +0000 by homerjay
Implementing Resumable File Uploads with Axios
Installation
First, add Axios to your project using npm:
npm install axios
Core Implementation
The following example demonstrates a complete resumable upload system with all essential features:
import axios from 'axios';
// Create a cancellation token source
const CancelToken = axios.CancelToken;
let cancelSource = null;
// Initialize chunk ...
Posted on Tue, 16 Jun 2026 17:45:32 +0000 by misterfine
Fetching Web Pages with Python's urllib Library for GET Requests
urllib Module Overview
The urllib module is a built-in Python library designed for HTTP requests. In Python 3, the primary submodules are urllib.request for handling requests and urllib.parse for URL encoding. This module enables programmatic browser simulation for data extraction tasks.
Practical Examples
Example 1: Retrieving Baidu Homepage C ...
Posted on Sun, 14 Jun 2026 16:53:18 +0000 by kosmidd
HTTP Request Construction and Transmission: A Technical Deep Dive
Overview
HTTP (Hypertext Transfer Protocol) serves as the foundational protocol for web communication. Every interaction between a client and a server begins with an HTTP request. This article dissects the end-to-end process of constructing and transmitting such a request, from its textual format to delivery over the TCP/IP stack.
Structure of ...
Posted on Fri, 05 Jun 2026 17:43:59 +0000 by daniel-g