The XMLHttpRequest Object: Core of AJAX
The XMLHttpRequest object is the fundamental component for AJAX operations. It handles sending requests to the server and receiving responses. Modern browsers have built-in support for this object, so no additional libraries are required.
Creating an XMLHttpRequest Instance
let request = new XMLHttpRequest();
Methods of XMLHttpRequest
Metho ...
Posted on Wed, 13 May 2026 00:59:31 +0000 by mhodge87
Building a Simple HTTP Proxy Server in C on Linux
This article demonstrates how to implement a basic HTTP proxy server using C language socket programming and process management on Linux. The implementation supports the GET method of the HTTP 1.0 protocol.
The proxy listens on a user-specified port, which can be configured at startup by running ./proxy <port> in the terminal.
Architectur ...
Posted on Tue, 12 May 2026 19:12:26 +0000 by markduce
Interacting with HTTP APIs Using Python Requests
InstallationInstall the package using pip:pip install requestsCore HTTP MethodsMethodDescriptiondelete(url, args)Sends a DELETE requestget(url, params, args)Sends a GET requesthead(url, args)Sends a HEAD requestpatch(url, data, args)Sends a PATCH requestpost(url, data, , args)Sends a POST requestput(url, data, args)Sends a PUT requestrequest(me ...
Posted on Sun, 10 May 2026 20:27:58 +0000 by JayFM
Understanding Servlet Lifecycle and Thread Safety
The lifecycle of a Servlet is managed by the container and consists of four distinct phases:
Creation: Occurs once, during the first request.
Initialization: Happens once, immediately after instantiation.
Service Execution: Invoked multiple times, once per request.
Destruction: Executed once, when the container shuts down.
When a client makes ...
Posted on Sat, 09 May 2026 17:23:41 +0000 by rsnell
HTTP File Downloading in Qt
Implementing File Downolad Functionality with Qt Network Module
Approach Overview
The implementation folllows a structured approach to handle HTTP file downloads:
Initially conceal the progress indicator
Upon triggering the download action, extract the URL, prepare the output file, and construct the network request
Dispatch the request and est ...
Posted on Sat, 09 May 2026 14:27:26 +0000 by Dargrotek
Understanding Content-Type in HTTP POST Data Submissions
Understanding Content-Type in HTTP POST Data Submissions
The Content-Type header specifies the encoding format of the data being sent to the server in an HTTP request. This header tells the server how to parse the incoming data stream, enabling proper deserialization on the server side.
Common Content-Type values used in web requests include:
...
Posted on Fri, 08 May 2026 16:38:39 +0000 by matstuff
Comparing HttpClient and WebRequest for HTTP Requests in C#
API Design
HttpClient provides a cleaner, more intuitive API compared to WebRequest. The framework encapsulates HTTP request components—methods, URLs, headers, and body content—into dedicated objects, streamlining development.
Sending a GET request with HttpClient requires a single call to GetAsync(url), while POST requests use PostAsync(url, c ...
Posted on Fri, 08 May 2026 14:27:25 +0000 by james_holden
Implementing Idempotent API Requests Using Request Headers
Understanding HTTP Idempotency
HTTP idempotency guarantees that making multiple identical requests produces the same result as a single request. This becomes critical when network failures cause clients to retry opertaions, ensuring that duplicate requests don't alter server state unexpectedly.
The HTTP specification classifies methods by their ...
Posted on Fri, 08 May 2026 11:59:31 +0000 by cookiemonster4470
Building TCP and HTTP Clients and Servers with Vert.x
Vert.x provides a straightforward way to implement non-blocking TCP and HTTP clients and servers.
TCP Server Implementation
Basic Server Creation
Instantiate a TCP server with default settings:
NetServer tcpServer = vertx.createNetServer();
Server Configuration
Customize server behavior by passing a NetServerOptions object:
NetServerOptions sr ...
Posted on Fri, 08 May 2026 03:09:39 +0000 by jraede