<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HTTP Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/http/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/http/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 21 Feb 2026 07:13:38 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Mastering File Uploads: A Complete Guide to Uploading Files in Modern Applications</title>
		<link>https://www.scmgalaxy.com/tutorials/mastering-file-uploads-a-complete-guide-to-uploading-files-in-modern-applications/</link>
					<comments>https://www.scmgalaxy.com/tutorials/mastering-file-uploads-a-complete-guide-to-uploading-files-in-modern-applications/#respond</comments>
		
		<dc:creator><![CDATA[Vijay K]]></dc:creator>
		<pubDate>Fri, 06 Jun 2025 12:26:00 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apis]]></category>
		<category><![CDATA[BackendProgramming]]></category>
		<category><![CDATA[CloudStorage]]></category>
		<category><![CDATA[FileHandling]]></category>
		<category><![CDATA[FileUpload]]></category>
		<category><![CDATA[FileUploadGuide]]></category>
		<category><![CDATA[FrontendDevelopment]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[UploadArchitecture]]></category>
		<category><![CDATA[WebDevelopment]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=12577</guid>

					<description><![CDATA[<p>Introduction In virtually every modern web and mobile application, the ability to upload files — such as images, documents, videos, [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/mastering-file-uploads-a-complete-guide-to-uploading-files-in-modern-applications/">Mastering File Uploads: A Complete Guide to Uploading Files in Modern Applications</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="683" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-44-1024x683.png" alt="" class="wp-image-12585" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-44-1024x683.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-44-300x200.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-44-768x512.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-44.png 1536w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading"><strong>Introduction</strong></h2>



<p class="wp-block-paragraph">In virtually every modern web and mobile application, the ability to <strong>upload files</strong> — such as images, documents, videos, or spreadsheets — is a critical feature. Whether it’s submitting a resume, uploading product images, or syncing a document to the cloud, file upload functionality is a core component of user interaction and data storage workflows.</p>



<p class="wp-block-paragraph">This guide provides a comprehensive overview of <strong>file upload systems</strong>, including what file uploading is, major use cases, how it works under the hood, architectural components, a typical workflow, and a step-by-step implementation guide.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading"><strong>What is File Upload?</strong></h2>



<p class="wp-block-paragraph"><strong>File upload</strong> refers to the process of <strong>transferring files from a local device (client) to a remote server or cloud storage system</strong>, usually via an HTTP-based interface like a web form, REST API, or application logic.</p>



<p class="wp-block-paragraph">In simple terms, a file upload allows a user to select a file and submit it to a server where it can be stored, processed, or distributed further.</p>



<p class="wp-block-paragraph"><strong>Types of file uploads:</strong></p>



<ul class="wp-block-list">
<li><strong>Single file upload</strong></li>



<li><strong>Multiple file upload</strong></li>



<li><strong>Chunked upload</strong> (for large files)</li>



<li><strong>Drag-and-drop upload interfaces</strong></li>



<li><strong>Background or asynchronous uploads</strong></li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading"><strong>Major Use Cases of File Upload</strong></h2>



<h3 class="wp-block-heading">1. <strong>User-Generated Content</strong></h3>



<ul class="wp-block-list">
<li>Uploading profile pictures, videos, resumes, posts.</li>



<li>Used in social media platforms, job portals, forums.</li>
</ul>



<h3 class="wp-block-heading">2. <strong>E-Commerce &amp; Product Management</strong></h3>



<ul class="wp-block-list">
<li>Uploading product images, descriptions, inventory files.</li>



<li>Often seen in seller dashboards or admin panels.</li>
</ul>



<h3 class="wp-block-heading">3. <strong>Document Submission Systems</strong></h3>



<ul class="wp-block-list">
<li>Submission of assignments, contracts, identification documents.</li>



<li>Used in education, legal, HR, and government systems.</li>
</ul>



<h3 class="wp-block-heading">4. <strong>Media and Content Platforms</strong></h3>



<ul class="wp-block-list">
<li>Uploading photos, music, video content.</li>



<li>Includes support for thumbnails, previews, and metadata.</li>
</ul>



<h3 class="wp-block-heading">5. <strong>Enterprise Applications</strong></h3>



<ul class="wp-block-list">
<li>Uploading reports, logs, spreadsheets for processing or analytics.</li>



<li>Common in CRMs, ERPs, and internal portals.</li>
</ul>



<h3 class="wp-block-heading">6. <strong>Cloud Storage and Backup</strong></h3>



<ul class="wp-block-list">
<li>Uploading files for storage on cloud platforms like Google Drive, Dropbox, AWS S3.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading"><strong>How File Upload Works: Architecture and Components</strong></h2>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="683" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-45-1024x683.png" alt="" class="wp-image-12586" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-45-1024x683.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-45-300x200.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-45-768x512.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-45.png 1536w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">The architecture behind file uploads involves several components that work together to receive, store, and manage uploaded files.</p>



<h3 class="wp-block-heading"><strong>1. Frontend (Client-Side)</strong></h3>



<p class="wp-block-paragraph">The user interface where users select files to upload, typically via:</p>



<ul class="wp-block-list">
<li><code>&lt;input type="file" /&gt;</code> in HTML</li>



<li>Drag-and-drop areas (using JavaScript APIs)</li>



<li>Form submission or Ajax-based asynchronous uploads</li>
</ul>



<h3 class="wp-block-heading"><strong>2. HTTP Protocol</strong></h3>



<p class="wp-block-paragraph">File uploads are typically sent over HTTP using the <strong><code>multipart/form-data</code></strong> encoding type, which packages file data and metadata in a single request.</p>



<h3 class="wp-block-heading"><strong>3. Backend Server</strong></h3>



<p class="wp-block-paragraph">The backend handles:</p>



<ul class="wp-block-list">
<li>Parsing the file from the HTTP request</li>



<li>Validating file type, size, and metadata</li>



<li>Temporarily storing the file</li>



<li>Saving to persistent storage (filesystem, database, or cloud)</li>
</ul>



<p class="wp-block-paragraph">Common backend technologies:</p>



<ul class="wp-block-list">
<li><strong>Node.js</strong> (with Express + Multer)</li>



<li><strong>Python</strong> (with Flask or Django)</li>



<li><strong>Java</strong> (Spring Boot)</li>



<li><strong>PHP</strong> (Laravel or native)</li>
</ul>



<h3 class="wp-block-heading"><strong>4. Storage Layer</strong></h3>



<p class="wp-block-paragraph">Uploaded files are saved either:</p>



<ul class="wp-block-list">
<li>On the server’s local filesystem (for small apps)</li>



<li>In a cloud storage service (e.g., AWS S3, Azure Blob Storage, Google Cloud Storage)</li>
</ul>



<h3 class="wp-block-heading"><strong>5. Database (Optional)</strong></h3>



<p class="wp-block-paragraph">Metadata (filename, path, uploader ID, timestamp) may be stored in a database for retrieval, indexing, or linking.</p>



<h3 class="wp-block-heading"><strong>6. Security Layer</strong></h3>



<p class="wp-block-paragraph">Important security features include:</p>



<ul class="wp-block-list">
<li>File type validation (MIME type)</li>



<li>Antivirus scanning</li>



<li>File size restrictions</li>



<li>Authentication and authorization</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading"><strong>Basic Workflow of File Upload</strong></h2>



<p class="wp-block-paragraph">The file upload process usually follows these steps:</p>



<ol class="wp-block-list">
<li><strong>User Selects File</strong><br>The user chooses one or more files using a file input field or drag-and-drop.</li>



<li><strong>File Data is Packaged</strong><br>Files are submitted in a form using the <code>multipart/form-data</code> encoding.</li>



<li><strong>Frontend Sends Request</strong><br>The file is sent to the backend via HTTP POST or PUT request.</li>



<li><strong>Backend Parses and Validates</strong><br>The server extracts file data, checks file size/type, and may rename or hash it.</li>



<li><strong>File is Saved</strong><br>The file is written to a location on the server or uploaded to cloud storage.</li>



<li><strong>Database Entry is Created (Optional)</strong><br>Metadata is stored (e.g., file name, URL, user, timestamp).</li>



<li><strong>Server Responds</strong><br>A response (success/failure + metadata or URL) is returned to the client.</li>



<li><strong>File Is Available</strong><br>The file can be accessed via a URL or internal system endpoint.</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading"><strong>Step-by-Step Getting Started Guide for File Upload</strong></h2>



<p class="wp-block-paragraph">Here’s a simple example using <strong>Python Flask</strong> and <strong>HTML</strong>.</p>



<h3 class="wp-block-heading"><strong>Step 1: Setup Flask Environment</strong></h3>



<p class="wp-block-paragraph">Install Flask:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
pip install flask

</pre></div>


<h3 class="wp-block-heading"><strong>Step 2: Create Backend App</strong></h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
# app.py
from flask import Flask, request, redirect, url_for
import os

app = Flask(__name__)
UPLOAD_FOLDER = &#039;./uploads&#039;
app.config&#x5B;&#039;UPLOAD_FOLDER&#039;] = UPLOAD_FOLDER

@app.route(&#039;/&#039;)
def upload_form():
    return &#039;&#039;&#039;
        &amp;lt;form method=&quot;post&quot; action=&quot;/upload&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;
            &amp;lt;input type=&quot;file&quot; name=&quot;file&quot;&amp;gt;
            &amp;lt;input type=&quot;submit&quot;&amp;gt;
        &amp;lt;/form&amp;gt;
    &#039;&#039;&#039;

@app.route(&#039;/upload&#039;, methods=&#x5B;&#039;POST&#039;])
def upload_file():
    file = request.files&#x5B;&#039;file&#039;]
    if file:
        filepath = os.path.join(app.config&#x5B;&#039;UPLOAD_FOLDER&#039;], file.filename)
        file.save(filepath)
        return f&#039;File uploaded to {filepath}&#039;

if __name__ == &#039;__main__&#039;:
    os.makedirs(UPLOAD_FOLDER, exist_ok=True)
    app.run(debug=True)

</pre></div>


<h3 class="wp-block-heading"><strong>Step 3: Run the Server</strong></h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
python app.py

</pre></div>


<p class="wp-block-paragraph">Visit <code>http://127.0.0.1:5000</code> in a browser and upload a file.</p>



<h3 class="wp-block-heading"><strong>Step 4: Secure and Expand</strong></h3>



<ul class="wp-block-list">
<li>Add checks for allowed file types:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
ALLOWED_EXTENSIONS = {&#039;png&#039;, &#039;jpg&#039;, &#039;pdf&#039;, &#039;txt&#039;}
def allowed_file(filename):
    return &#039;.&#039; in filename and filename.rsplit(&#039;.&#039;, 1)&#x5B;1].lower() in ALLOWED_EXTENSIONS

</pre></div>


<ul class="wp-block-list">
<li>Expand to use cloud storage (e.g., AWS S3 with <code>boto3</code>)</li>



<li>Add authentication to restrict access</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading"><strong>Best Practices</strong></h2>



<ul class="wp-block-list">
<li>Always validate file type and size on both client and server.</li>



<li>Sanitize filenames to prevent directory traversal attacks.</li>



<li>Use hashed or UUID filenames to avoid overwrites.</li>



<li>Store files outside the web root or behind signed URLs.</li>



<li>Consider chunked upload for large files.</li>



<li>Use background workers (Celery, Sidekiq) for processing heavy uploads.</li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/mastering-file-uploads-a-complete-guide-to-uploading-files-in-modern-applications/">Mastering File Uploads: A Complete Guide to Uploading Files in Modern Applications</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/mastering-file-uploads-a-complete-guide-to-uploading-files-in-modern-applications/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Understanding Cookies: Concepts, Use Cases, Architecture and Getting Started</title>
		<link>https://www.scmgalaxy.com/tutorials/understanding-cookies-concepts-use-cases-architecture-and-getting-started/</link>
					<comments>https://www.scmgalaxy.com/tutorials/understanding-cookies-concepts-use-cases-architecture-and-getting-started/#respond</comments>
		
		<dc:creator><![CDATA[Vijay K]]></dc:creator>
		<pubDate>Fri, 30 May 2025 18:24:00 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Backend]]></category>
		<category><![CDATA[CCPA]]></category>
		<category><![CDATA[Cookies]]></category>
		<category><![CDATA[Frontend]]></category>
		<category><![CDATA[GDPR]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[Privacy]]></category>
		<category><![CDATA[SessionManagement]]></category>
		<category><![CDATA[UserExperience]]></category>
		<category><![CDATA[WebAnalytics]]></category>
		<category><![CDATA[WebDevelopment]]></category>
		<category><![CDATA[WebSecurity]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=12496</guid>

					<description><![CDATA[<p>What Are Cookies? Cookies are small text files that web servers send to a user’s web browser, which stores them [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/understanding-cookies-concepts-use-cases-architecture-and-getting-started/">Understanding Cookies: Concepts, Use Cases, Architecture and Getting Started</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="683" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-6-1024x683.png" alt="" class="wp-image-12501" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-6-1024x683.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-6-300x200.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-6-768x512.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-6.png 1536w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">What Are Cookies?</h2>



<p class="wp-block-paragraph">Cookies are small text files that web servers send to a user’s web browser, which stores them on the client’s device. These files contain data that help websites remember information about users, such as login status, preferences, or tracking identifiers.</p>



<p class="wp-block-paragraph">Cookies were introduced in the early 1990s to address the challenge posed by the HTTP protocol’s statelessness — meaning that each request to a server is independent and does not inherently carry information about previous interactions. Cookies allow websites to “remember” users and their interactions across sessions.</p>



<p class="wp-block-paragraph">Each cookie consists of key-value pairs and a set of metadata that define the cookie’s scope, lifespan, and security properties. The browser automatically includes relevant cookies in subsequent HTTP requests to the appropriate domains, enabling servers to maintain a continuous user experience.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">Major Use Cases of Cookies</h2>



<p class="wp-block-paragraph">Cookies are vital across many web application domains due to their ability to persist state and track information. Below are key use cases:</p>



<h3 class="wp-block-heading">1. <strong>Session Management</strong></h3>



<p class="wp-block-paragraph">Cookies enable websites to identify returning users and maintain session continuity without requiring users to authenticate on every page load. For example, after logging in, a session cookie keeps a user logged in until they log out or the session expires.</p>



<h3 class="wp-block-heading">2. <strong>User Preferences and Personalization</strong></h3>



<p class="wp-block-paragraph">Cookies store user settings such as language preferences, theme choices, or layout configurations. When a user revisits, the site can retrieve these preferences and tailor the interface accordingly.</p>



<h3 class="wp-block-heading">3. <strong>Shopping Cart Persistence</strong></h3>



<p class="wp-block-paragraph">E-commerce websites leverage cookies to remember products added to a user’s cart even if the browser is closed and reopened before checkout, enhancing the shopping experience.</p>



<h3 class="wp-block-heading">4. <strong>Tracking and Analytics</strong></h3>



<p class="wp-block-paragraph">Cookies collect data on user behavior, page visits, and navigation paths. Analytics platforms use cookies to generate insights about website performance and user engagement. Advertising networks use third-party cookies to track users across sites for targeted ads.</p>



<h3 class="wp-block-heading">5. <strong>Security</strong></h3>



<p class="wp-block-paragraph">Cookies help secure web applications by storing tokens or flags used in authentication workflows, CSRF protection, and managing user permissions.</p>



<h3 class="wp-block-heading">6. <strong>Legal Compliance</strong></h3>



<p class="wp-block-paragraph">Cookies assist in storing consent information, ensuring compliance with data protection regulations like the General Data Protection Regulation (GDPR) and California Consumer Privacy Act (CCPA).</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="504" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-7.png" alt="" class="wp-image-12502" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-7.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-7-300x148.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-7-768x378.png 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">How Cookies Work Along with Architecture</h2>



<p class="wp-block-paragraph">Cookies operate at the intersection of HTTP protocol, client (browser) storage, and server-side application logic. The architecture supporting cookie functionality includes several components:</p>



<h3 class="wp-block-heading">1. <strong>HTTP Headers and Communication</strong></h3>



<ul class="wp-block-list">
<li>When a client sends a request to a server, it includes a <code>Cookie</code> header containing cookies relevant to the request URL’s domain and path.</li>



<li>The server can send back one or more <code>Set-Cookie</code> headers in its response to instruct the browser to store new cookies or update existing ones.</li>
</ul>



<p class="wp-block-paragraph">Example HTTP response header:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
Set-Cookie: sessionId=abc123; Expires=Wed, 09 Jun 2026 10:18:14 GMT; Path=/; Secure; HttpOnly; SameSite=Strict

</pre></div>


<h3 class="wp-block-heading">2. <strong>Browser Cookie Storage</strong></h3>



<ul class="wp-block-list">
<li>Browsers maintain a &#8220;cookie jar&#8221; storing cookies by domain and path.</li>



<li>They enforce scoping rules, ensuring cookies are only sent to appropriate URLs.</li>



<li>Cookies are stored on disk or in memory depending on persistence.</li>
</ul>



<h3 class="wp-block-heading">3. <strong>Cookie Attributes and Their Impact</strong></h3>



<ul class="wp-block-list">
<li><strong>Domain:</strong> Restricts the domains to which the cookie will be sent. Cookies set for <code>example.com</code> are sent to <code>sub.example.com</code> but not to <code>otherdomain.com</code>.</li>



<li><strong>Path:</strong> Restricts the URL paths on the domain for which the cookie is valid.</li>



<li><strong>Expires/Max-Age:</strong> Defines when a cookie will be deleted. Session cookies expire when the browser closes; persistent cookies survive beyond sessions.</li>



<li><strong>Secure:</strong> Ensures cookies are only sent over HTTPS connections.</li>



<li><strong>HttpOnly:</strong> Prevents client-side JavaScript from accessing cookies, mitigating some XSS attacks.</li>



<li><strong>SameSite:</strong> Controls cross-site cookie sharing to prevent CSRF and privacy leaks. Values include <code>Strict</code>, <code>Lax</code>, or <code>None</code>.</li>
</ul>



<h3 class="wp-block-heading">4. <strong>Server-Side Handling</strong></h3>



<ul class="wp-block-list">
<li>Servers read cookies from incoming requests and use their data to maintain sessions, authenticate users, or track state.</li>



<li>Servers can update or delete cookies by sending updated <code>Set-Cookie</code> headers.</li>
</ul>



<h3 class="wp-block-heading">5. <strong>Third-Party Cookies</strong></h3>



<ul class="wp-block-list">
<li>These are cookies set by domains other than the one shown in the browser&#8217;s address bar, typically used by advertisers or analytics services.</li>



<li>Modern browsers are increasingly restricting third-party cookies due to privacy concerns.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">Detailed Workflow of Cookies</h2>



<h3 class="wp-block-heading">1. <strong>Initial Visit</strong></h3>



<ul class="wp-block-list">
<li>User visits a website; the browser sends a request without cookies.</li>
</ul>



<h3 class="wp-block-heading">2. <strong>Server Response with Cookies</strong></h3>



<ul class="wp-block-list">
<li>Server responds with <code>Set-Cookie</code> headers to establish sessions or preferences.</li>
</ul>



<h3 class="wp-block-heading">3. <strong>Browser Stores Cookies</strong></h3>



<ul class="wp-block-list">
<li>The browser saves cookies respecting domain, path, security attributes.</li>
</ul>



<h3 class="wp-block-heading">4. <strong>Subsequent Requests</strong></h3>



<ul class="wp-block-list">
<li>Browser automatically includes relevant cookies in HTTP requests for that domain/path.</li>
</ul>



<h3 class="wp-block-heading">5. <strong>Server Processes Cookies</strong></h3>



<ul class="wp-block-list">
<li>Server uses cookies to authenticate the user, retrieve session data, or customize the response.</li>
</ul>



<h3 class="wp-block-heading">6. <strong>Cookie Updates</strong></h3>



<ul class="wp-block-list">
<li>Server can update cookies by sending new <code>Set-Cookie</code> headers with modified values or expiration.</li>
</ul>



<h3 class="wp-block-heading">7. <strong>Cookie Expiration or Deletion</strong></h3>



<ul class="wp-block-list">
<li>Cookies expire naturally after their expiry time or are deleted by explicit instructions or user actions.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">Step-by-Step Getting Started Guide for Cookies</h2>



<h3 class="wp-block-heading">Step 1: Understand Cookie Fundamentals</h3>



<p class="wp-block-paragraph">Familiarize yourself with cookie components — name, value, domain, path, expiry, and security flags.</p>



<h3 class="wp-block-heading">Step 2: Setting Cookies from the Server</h3>



<p class="wp-block-paragraph"><strong>Example: Node.js Express</strong></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
res.cookie(&#039;userId&#039;, &#039;12345&#039;, {
  maxAge: 24 * 60 * 60 * 1000, // 1 day
  httpOnly: true,
  secure: true,
  sameSite: &#039;Strict&#039;,
  path: &#039;/&#039;
});

</pre></div>


<h3 class="wp-block-heading">Step 3: Reading Cookies on Server</h3>



<p class="wp-block-paragraph">Using the <code>cookie-parser</code> middleware:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
const userId = req.cookies.userId;
console.log(`User ID from cookie: ${userId}`);

</pre></div>


<h3 class="wp-block-heading">Step 4: Creating Cookies with JavaScript</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
document.cookie = &quot;theme=dark; max-age=3600; path=/&quot;;

</pre></div>


<h3 class="wp-block-heading">Step 5: Deleting Cookies</h3>



<p class="wp-block-paragraph">Set expiration date in the past:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
document.cookie = &quot;theme=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;&quot;;

</pre></div>


<h3 class="wp-block-heading">Step 6: Implement Security Best Practices</h3>



<ul class="wp-block-list">
<li>Always set <code>HttpOnly</code> and <code>Secure</code> flags where possible.</li>



<li>Use <code>SameSite</code> attributes to reduce CSRF vulnerabilities.</li>



<li>Avoid storing sensitive information directly in cookies.</li>
</ul>



<h3 class="wp-block-heading">Step 7: Respect Privacy Regulations</h3>



<ul class="wp-block-list">
<li>Implement consent banners.</li>



<li>Provide users with options to manage cookie preferences.</li>



<li>Document cookie usage in privacy policies.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">Advanced Topics and Considerations</h2>



<h3 class="wp-block-heading">1. <strong>Cookie Size and Limits</strong></h3>



<ul class="wp-block-list">
<li>Most browsers limit individual cookie size to 4KB.</li>



<li>There is a per-domain cookie limit (around 20–50 cookies).</li>



<li>Exceeding limits causes older cookies to be evicted.</li>
</ul>



<h3 class="wp-block-heading">2. <strong>Third-Party Cookie Restrictions</strong></h3>



<ul class="wp-block-list">
<li>Browsers increasingly block or restrict third-party cookies.</li>



<li>Alternatives include localStorage, IndexedDB, or server-side sessions.</li>
</ul>



<h3 class="wp-block-heading">3. <strong>Alternatives to Cookies</strong></h3>



<ul class="wp-block-list">
<li>Web Storage API (localStorage, sessionStorage) for client-side storage.</li>



<li>JWT tokens for stateless authentication.</li>
</ul>



<h3 class="wp-block-heading">4. <strong>Cross-Origin Resource Sharing (CORS) and Cookies</strong></h3>



<ul class="wp-block-list">
<li>Cookies require careful configuration of CORS headers and credentials policies to work across domains.</li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/understanding-cookies-concepts-use-cases-architecture-and-getting-started/">Understanding Cookies: Concepts, Use Cases, Architecture and Getting Started</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/understanding-cookies-concepts-use-cases-architecture-and-getting-started/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Comprehensive Guide to URLs: Definition, Use Cases, Architecture, and Getting Started</title>
		<link>https://www.scmgalaxy.com/tutorials/comprehensive-guide-to-urls-definition-use-cases-architecture-and-getting-started/</link>
					<comments>https://www.scmgalaxy.com/tutorials/comprehensive-guide-to-urls-definition-use-cases-architecture-and-getting-started/#respond</comments>
		
		<dc:creator><![CDATA[Vijay K]]></dc:creator>
		<pubDate>Thu, 29 May 2025 05:19:43 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apis]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[InternetArchitecture]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[WebBasics]]></category>
		<category><![CDATA[WebDevelopment]]></category>
		<category><![CDATA[WebSecurity]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=12429</guid>

					<description><![CDATA[<p>What is a URL? A Uniform Resource Locator (URL) is a standardized address used to locate resources on the internet. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/comprehensive-guide-to-urls-definition-use-cases-architecture-and-getting-started/">Comprehensive Guide to URLs: Definition, Use Cases, Architecture, and Getting Started</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="538" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-103-1024x538.png" alt="" class="wp-image-12432" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-103-1024x538.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-103-300x158.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-103-768x403.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-103-1536x806.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-103.png 1600w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">What is a URL?</h2>



<p class="wp-block-paragraph">A <strong>Uniform Resource Locator (URL)</strong> is a standardized address used to locate resources on the internet. It is a subset of the broader concept called URI (Uniform Resource Identifier), specifically identifying the means to retrieve a resource by describing its location and the protocol to access it.</p>



<p class="wp-block-paragraph">A URL acts like a digital address or coordinate that points to a particular resource on the web. Without URLs, users would have no direct way to access websites, files, images, videos, or any online service.</p>



<h3 class="wp-block-heading">Components of a URL</h3>



<p class="wp-block-paragraph">A URL is composed of several distinct parts, each serving a specific role:</p>



<ul class="wp-block-list">
<li><strong>Scheme/Protocol</strong>: This specifies the protocol used to access the resource, such as <code>http</code>, <code>https</code>, <code>ftp</code>, <code>mailto</code>, or <code>file</code>. For web browsing, <code>http</code> and <code>https</code> are the most common.</li>



<li><strong>Host/Domain</strong>: The domain name (e.g., <code>www.example.com</code>) or IP address of the server hosting the resource.</li>



<li><strong>Port</strong> (optional): The network port number used to connect to the server. By default, HTTP uses port 80 and HTTPS uses port 443.</li>



<li><strong>Path</strong>: Specifies the exact location or file on the server (e.g., <code>/folder/page.html</code>).</li>



<li><strong>Query String</strong> (optional): Parameters that provide additional data to the server, often for dynamic content generation (e.g., <code>?search=books&amp;sort=asc</code>).</li>



<li><strong>Fragment</strong> (optional): Refers to a subsection within the resource (e.g., <code>#section2</code>), often used for navigation inside long web pages.</li>
</ul>



<p class="wp-block-paragraph">Example URL:<br><code>https://www.example.com:443/products/item?category=books#reviews</code></p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">Major Use Cases of URLs</h2>



<p class="wp-block-paragraph">URLs are essential in modern internet usage and serve many purposes:</p>



<ol class="wp-block-list">
<li><strong>Accessing Websites and Web Pages</strong><br>The most common use of URLs is to access websites. Every webpage, image, or video on the web has a unique URL. When users type a URL in their browser, it directs the browser to fetch that resource.</li>



<li><strong>Linking and Navigation</strong><br>URLs enable hyperlinking, which allows users to navigate seamlessly across different pages, websites, and resources. Hyperlinks embedded in text or buttons use URLs to point to another location.</li>



<li><strong>Accessing APIs and Web Services</strong><br>In software development, URLs are used to access RESTful APIs and web services. These URLs point to endpoints where clients can send requests and receive structured data like JSON or XML.</li>



<li><strong>File Transfers</strong><br>Protocols like FTP use URLs to locate and transfer files between client and server.</li>



<li><strong>Sharing Content</strong><br>URLs allow easy sharing of content through social media, emails, and messaging apps. Shortened URLs are often used for convenience.</li>



<li><strong>Bookmarking and Caching</strong><br>URLs enable users to save favorite resources and allow browsers to cache content for faster future access.</li>



<li><strong>Tracking and Analytics</strong><br>Query parameters in URLs can track user behavior, campaign effectiveness, and source attribution for marketing purposes.</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">How URL Works Along with Architecture</h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="601" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-104-1024x601.png" alt="" class="wp-image-12433" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-104-1024x601.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-104-300x176.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-104-768x451.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-104.png 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Understanding how URLs work requires insight into the broader architecture of the web. The web is a client-server architecture based on protocols like HTTP and HTTPS. Here’s how the URL fits into the system:</p>



<h3 class="wp-block-heading">Key Components in URL Architecture</h3>



<ul class="wp-block-list">
<li><strong>Client (User Agent)</strong><br>This is typically a web browser or any software that initiates requests. When a URL is entered, the client parses it to understand where and how to retrieve the resource.</li>



<li><strong>DNS (Domain Name System)</strong><br>DNS translates the human-readable domain name from the URL into a machine-readable IP address. This step is crucial because the internet uses IP addresses to route requests.</li>



<li><strong>Internet</strong><br>The underlying network infrastructure routes data packets between the client and server.</li>



<li><strong>Web Server</strong><br>This server listens on a specific IP and port and hosts the requested resource (website, file, or service). It processes incoming requests and sends back responses.</li>



<li><strong>Protocols (HTTP/HTTPS)</strong><br>Define the communication rules between client and server, including request methods (GET, POST), headers, and status codes.</li>
</ul>



<h3 class="wp-block-heading">Detailed Process Flow</h3>



<ol class="wp-block-list">
<li><strong>User Enters URL</strong><br>The user types a URL in the browser or clicks a hyperlink.</li>



<li><strong>URL Parsing</strong><br>The browser parses the URL into its components (scheme, host, path, etc.).</li>



<li><strong>DNS Lookup</strong><br>The browser queries a DNS server to convert the domain name into an IP address.</li>



<li><strong>Establish Connection</strong><br>The browser establishes a TCP connection to the web server at the resolved IP and port. For HTTPS, a TLS handshake ensures a secure connection.</li>



<li><strong>Send HTTP Request</strong><br>The browser sends an HTTP request message to the server, typically a GET request asking for the resource specified in the URL.</li>



<li><strong>Server Processes Request</strong><br>The server locates the resource and prepares a response.</li>



<li><strong>Server Sends Response</strong><br>The server sends an HTTP response with status codes (e.g., 200 OK, 404 Not Found) and the requested data.</li>



<li><strong>Browser Renders Content</strong><br>The browser receives the data and renders the webpage or resource to the user.</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">Basic Workflow of URL</h2>



<p class="wp-block-paragraph">The workflow of using a URL can be broken down into these essential steps:</p>



<ol class="wp-block-list">
<li><strong>Input &amp; Parsing</strong>: User inputs the URL; the browser breaks it into understandable parts.</li>



<li><strong>DNS Resolution</strong>: Converts domain name into an IP address using DNS.</li>



<li><strong>Connection Setup</strong>: Opens a network connection with the server.</li>



<li><strong>Request Formation</strong>: The browser builds the HTTP request based on the URL path and method.</li>



<li><strong>Request Transmission</strong>: Request is sent to the server.</li>



<li><strong>Server Response</strong>: Server processes the request and responds.</li>



<li><strong>Response Reception</strong>: Browser receives the data.</li>



<li><strong>Rendering</strong>: Content is displayed to the user.</li>



<li><strong>Interaction</strong>: User interacts with the content, potentially triggering new URL requests.</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">Step-by-Step Getting Started Guide for URL</h2>



<p class="wp-block-paragraph">Whether you’re a user, student, or developer, here is a guide to get started with understanding and using URLs effectively:</p>



<h3 class="wp-block-heading">Step 1: Understanding URL Components</h3>



<p class="wp-block-paragraph">Start by dissecting any URL you come across. Identify the protocol (e.g., <code>https</code>), the domain name (e.g., <code>www.google.com</code>), the path (e.g., <code>/search</code>), query parameters (e.g., <code>?q=openai</code>), and any fragment identifiers.</p>



<h3 class="wp-block-heading">Step 2: Using a Web Browser</h3>



<p class="wp-block-paragraph">Open any web browser (Chrome, Firefox, Safari) and enter a URL into the address bar. Observe how the page loads. Try changing parts of the URL to see how it affects the content.</p>



<h3 class="wp-block-heading">Step 3: DNS Lookup Exploration</h3>



<p class="wp-block-paragraph">Use command-line tools like <code>nslookup</code> or <code>dig</code> to see how the domain name is resolved to an IP address. For example, running <code>nslookup www.example.com</code> shows the server IP.</p>



<h3 class="wp-block-heading">Step 4: Try Different Protocols</h3>



<p class="wp-block-paragraph">Experiment with different URL schemes like <code>ftp://</code> or <code>mailto:</code> to see how browsers or applications respond to different protocols.</p>



<h3 class="wp-block-heading">Step 5: Modify Query Strings</h3>



<p class="wp-block-paragraph">Add or change query parameters in URLs (e.g., <code>?page=2&amp;sort=asc</code>) to observe how dynamic content changes on websites.</p>



<h3 class="wp-block-heading">Step 6: Use URL in Development</h3>



<p class="wp-block-paragraph">In programming or web development, URLs are vital for making API requests, linking resources, and configuring routing. Try calling a simple public API with a URL in tools like Postman or your code.</p>



<h3 class="wp-block-heading">Step 7: Security Awareness</h3>



<p class="wp-block-paragraph">Understand the difference between <code>http</code> and <code>https</code>. Always prefer HTTPS URLs for secure communication that encrypts data in transit.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/comprehensive-guide-to-urls-definition-use-cases-architecture-and-getting-started/">Comprehensive Guide to URLs: Definition, Use Cases, Architecture, and Getting Started</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/comprehensive-guide-to-urls-definition-use-cases-architecture-and-getting-started/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Cookies and Why it is Used?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-cookies-and-why-it-is-used/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-cookies-and-why-it-is-used/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Wed, 24 May 2023 14:16:25 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Cookies]]></category>
		<category><![CDATA[Different types of cookies]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[HTTP cookies]]></category>
		<category><![CDATA[Magic Cookies]]></category>
		<category><![CDATA[Persistent cookie]]></category>
		<category><![CDATA[Session management]]></category>
		<category><![CDATA[What is Cookies]]></category>
		<category><![CDATA[why cookies are used?]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=10588</guid>

					<description><![CDATA[<p>What is Cookies? Cookies are little text files that websites save on the user&#8217;s device (such as a computer or [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-cookies-and-why-it-is-used/">What is Cookies and Why it is Used?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">What is Cookies?</h3>



<p class="wp-block-paragraph">Cookies are little text files that websites save on the user&#8217;s device (such as a computer or mobile device) when the user visits the website. These files include information that the website may download and utilize the next time the visitor visits the site.</p>



<p class="wp-block-paragraph">HTTP cookies are required for modern Internet use, yet they compromise your privacy. HTTP cookies, which are a required aspect of online browsing, assist web developers in providing you with more personalized, easy website visits. Websites may remember you, your website logins, shopping carts, and other information via cookies. They may, however, be a goldmine of private information for crooks to snoop on.</p>



<h3 class="wp-block-heading">Different types of cookies &#8211; Magic Cookies and HTTP Cookies</h3>



<p class="wp-block-paragraph"><strong>Magic cookies</strong> :- The term &#8220;magic cookies&#8221; originated in the early days of computers and describes data packets that are delivered and received unchanged. This is frequently used to enter into computer databases, such a company&#8217;s internal network. The term &#8220;cookie&#8221; as we know it today predates this concept.</p>



<p class="wp-block-paragraph"><strong>HTTP cookies</strong> :- HTTP cookies are a modified form of the &#8220;magic cookie&#8221; designed for web browsing. The &#8220;magic cookie&#8221; inspired web browser creator Lou Montulli in 1994. When he assisted a website for online shopping in repairing its overburdened servers, he duplicated this idea for browsers.</p>



<h3 class="wp-block-heading">What Are Cookies Used For?</h3>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="869" height="1024" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-131-869x1024.png" alt="" class="wp-image-10591" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-131-869x1024.png 869w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-131-255x300.png 255w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-131-768x905.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-131-1303x1536.png 1303w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-131.png 1500w" sizes="auto, (max-width: 869px) 100vw, 869px" /></figure>



<p class="wp-block-paragraph">Websites utilize HTTP cookies to improve the user experience. Without cookies, you would have to log back in each time you left a website or, if you accidently closed the browser, rebuild your shopping cart. making cookies a crucial component of using the internet.</p>



<p class="wp-block-paragraph"><strong>Session management :-</strong> Transient cookies and per-session cookies are other names for session cookies. While a person is browsing a website, session cookies save data. Once the user ends the session, these cookies are removed.</p>



<p class="wp-block-paragraph"><strong>Persistent cookie :-</strong> Cookies that are persistent are kept for a certain period of time. Until they are erased or they expire, these cookies stay on your device. Because they are used to gather user data including browsing patterns and preferences, persistent cookies are also known as tracking cookies.</p>



<p class="wp-block-paragraph"><strong>First-party and third-party cookies :-</strong> Cookies that are set by websites that users visit directly are known as first-party cookies. These cookies typically store data relevant to or related with the website, such as user preferences or location.<br>Cookies that are associated with third-party content, such as embedded videos, advertisements, web banners, and scripts, are referred to as third-party cookies. Third-party cookies are frequently used by advertisers to monitor user behaviour.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="803" height="606" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-130.png" alt="" class="wp-image-10590" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-130.png 803w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-130-300x226.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2023/05/image-130-768x580.png 768w" sizes="auto, (max-width: 803px) 100vw, 803px" /></figure>



<p class="wp-block-paragraph"><strong>Tracking :-</strong> Shopping sites use cookies to keep track of the items that users have previously viewed, allowing the sites to propose more things that they may be interested in and store products in their shopping carts while customers browse elsewhere.</p>



<h3 class="wp-block-heading">Conclusion </h3>



<p class="wp-block-paragraph">Unsecured cookies may potentially provide a security risk to website owners and users. The original website or a third party receives unencrypted data about an insecure cookie over HTTP. That&#8217;s a low danger if the information is something straightforward, like if the person has already visited the site. Some websites, however, may use cookies to store user data, including personally identifying information such as login passwords and payment card details. Unencrypted transmissions of such kind of data leave them open to interception and misuse by criminals. A secure cookie only permits the transmission of cookie data via HTTPS and does not carry the same danger.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-cookies-and-why-it-is-used/">What is Cookies and Why it is Used?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-cookies-and-why-it-is-used/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Setup Docker service to use insecure(http) registry instead of https</title>
		<link>https://www.scmgalaxy.com/tutorials/setup-docker-service-to-use-insecurehttp-registry-instead-of-https/</link>
					<comments>https://www.scmgalaxy.com/tutorials/setup-docker-service-to-use-insecurehttp-registry-instead-of-https/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 31 Jul 2018 12:23:31 +0000</pubDate>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[DOCKER_OPTS]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[insecure]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[service]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5113</guid>

					<description><![CDATA[<p>By default docker use https to connect to docker registry. But there can be use cases to use insecure registry. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/setup-docker-service-to-use-insecurehttp-registry-instead-of-https/">Setup Docker service to use insecure(http) registry instead of https</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5118" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/setup-docker-service.png" alt="" width="600" height="315" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/setup-docker-service.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/07/setup-docker-service-300x158.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>By default docker use https to connect to docker registry. But there can be use cases to use insecure registry. Here are the steps to use insecure registry.</p>
<p><strong>In ubuntu</strong><br />
edit the file /etc/default/docker and update DOCKER_OPTS e.g</p>
<pre class="brush: plain; title: ; notranslate">DOCKER_OPTS='--insecure-registry 10.84.34.155:5000'</pre>
<p>where 10.84.34.155 is ipaddress of registry and 5000 is your port on which registry is configured.</p>
<p><strong>In Centos</strong><br />
Edit the file /etc/docker/daemon.json e.g.</p>
<pre class="brush: plain; title: ; notranslate">{
&quot;insecure-registries&quot; : &#x5B;&quot;10.84.34.155:5000&quot;]
}</pre>
<p>where 10.84.34.155 is ipaddress of registry and 5000 is your port on which registry is configured.</p>
<p><strong>Restart docker</strong><br />
$ service docker restart</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/setup-docker-service-to-use-insecurehttp-registry-instead-of-https/">Setup Docker service to use insecure(http) registry instead of https</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/setup-docker-service-to-use-insecurehttp-registry-instead-of-https/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is HTTP (HyperText Transfer Protocol)</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-http-hypertext-transfer-protocol/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-http-hypertext-transfer-protocol/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 08 Jan 2018 11:32:02 +0000</pubDate>
				<category><![CDATA[Concept & Definition]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[HTTP Introduction]]></category>
		<category><![CDATA[HTTP Overview]]></category>
		<category><![CDATA[HyperText Transfer Protocol]]></category>
		<category><![CDATA[What is HTTP (HyperText Transfer Protocol)]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4533</guid>

					<description><![CDATA[<p>Short for HyperText Transfer Protocol, the underlying protocol  used by the World Wide Web. HTTP defines how messages are formatted [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-http-hypertext-transfer-protocol/">What is HTTP (HyperText Transfer Protocol)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Short for HyperText Transfer Protocol, the underlying protocol  used by the World Wide Web. HTTP defines how messages are formatted and transmitted, and what actions Web servers and browsers  should take in response to various commands. For example, when you enter a URL in your browser, this actually sends an HTTP command to the Web server directing it to fetch and transmit the requested Web page.</p>
<p>The other main standard that controls how the World Wide Web works is HTML, which covers how Web pages are formatted and displayed.</p>
<p>HTTP is called a stateless protocol because each command is executed independently, without any knowledge of the commands that came before it.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-http-hypertext-transfer-protocol/">What is HTTP (HyperText Transfer Protocol)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-http-hypertext-transfer-protocol/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache and HTTP Interview Questions and Answers &#8211; Interview Guide</title>
		<link>https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 01 Jun 2010 10:05:58 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache and HTTP Interview Guide]]></category>
		<category><![CDATA[Apache and HTTP Interview Q&A]]></category>
		<category><![CDATA[Apache and HTTP Interview Questions and Answers]]></category>
		<category><![CDATA[Apache and HTTP Job Interview]]></category>
		<category><![CDATA[Apache HTTP Job Interview Kit]]></category>
		<category><![CDATA[Apache Interview]]></category>
		<category><![CDATA[Apache Interview Questions and Answers]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[HTTP Interview]]></category>
		<category><![CDATA[HTTP Interview Questions and Answers]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions of Apache and HTTP]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[List of Apache and HTTP Interview Questions and Answers]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Questions and Answers]]></category>
		<category><![CDATA[Selected]]></category>
		<category><![CDATA[Sets]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/06/01/apache-and-http-interview-questions/</guid>

					<description><![CDATA[<p>Apache and HTTP Interview Questions and Answers &#8211; Interview Guide List of Apache and HTTP Interview Questions: &#8211; &#60;!&#8211; /* [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/">Apache and HTTP Interview Questions and Answers &#8211; Interview Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4297 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apache-and-http-interview-q.png" alt="apache-and-http-interview-question-answers" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apache-and-http-interview-q.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apache-and-http-interview-q-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Apache and HTTP Interview Questions and Answers &#8211; Interview Guide</strong></p>
<p><strong>List of Apache and HTTP Interview Questions: &#8211; </strong></p>
<p><!-- [if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves /> <w:TrackFormatting /> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF /> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:SplitPgBreakAndParaMark /> <w:DontVertAlignCellWithSp /> <w:DontBreakConstrainedForcedTables /> <w:DontVertAlignInTxbx /> <w:Word11KerningPairs /> <w:CachedColBalance /> </w:Compatibility> <m:mathPr> <m:mathFont m:val="Cambria Math" /> <m:brkBin m:val="before" /> <m:brkBinSub m:val="&#45;-" /> <m:smallFrac m:val="off" /> <m:dispDef /> <m:lMargin m:val="0" /> <m:rMargin m:val="0" /> <m:defJc m:val="centerGroup" /> <m:wrapIndent m:val="1440" /> <m:intLim m:val="subSup" /> <m:naryLim m:val="undOvr" /> </m:mathPr></w:WordDocument> </xml><![endif]--><!-- [if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Normal" /> <w:LsdException Locked="false" Priority="9" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 1" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /> <w:LsdException Locked="false" Priority="39" Name="toc 1" /> <w:LsdException Locked="false" Priority="39" Name="toc 2" /> <w:LsdException Locked="false" Priority="39" Name="toc 3" /> <w:LsdException Locked="false" Priority="39" Name="toc 4" /> <w:LsdException Locked="false" Priority="39" Name="toc 5" /> <w:LsdException Locked="false" Priority="39" Name="toc 6" /> <w:LsdException Locked="false" Priority="39" Name="toc 7" /> <w:LsdException Locked="false" Priority="39" Name="toc 8" /> <w:LsdException Locked="false" Priority="39" Name="toc 9" /> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /> <w:LsdException Locked="false" Priority="10" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Title" /> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /> <w:LsdException Locked="false" Priority="11" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /> <w:LsdException Locked="false" Priority="22" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Strong" /> <w:LsdException Locked="false" Priority="20" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /> <w:LsdException Locked="false" Priority="59" SemiHidden="false" UnhideWhenUsed="false" Name="Table Grid" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /> <w:LsdException Locked="false" Priority="1" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 1" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 1" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 1" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /> <w:LsdException Locked="false" Priority="34" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /> <w:LsdException Locked="false" Priority="29" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Quote" /> <w:LsdException Locked="false" Priority="30" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 1" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 1" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 2" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 2" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 2" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 2" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 2" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 3" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 3" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 3" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 3" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 3" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 4" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 4" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 4" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 4" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 4" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 5" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 5" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 5" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 5" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 5" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 6" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 6" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 6" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 6" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 6" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /> <w:LsdException Locked="false" Priority="19" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /> <w:LsdException Locked="false" Priority="21" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /> <w:LsdException Locked="false" Priority="31" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /> <w:LsdException Locked="false" Priority="32" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /> <w:LsdException Locked="false" Priority="33" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Book Title" /> <w:LsdException Locked="false" Priority="37" Name="Bibliography" /> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /> </w:LatentStyles> </xml><![endif]--> &lt;!&#8211; /* Font Definitions */ @font-face {font-family:&#8221;Cambria Math&#8221;; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:&#8221;&#8221;; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:&#8221;Calibri&#8221;,&#8221;sans-serif&#8221;; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:&#8221;Times New Roman&#8221;; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:&#8221;Times New Roman&#8221;; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:1388797391; mso-list-template-ids:-480605428;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} &#8211;&gt; <!-- [if gte mso 10]>



<style>  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} </style>

 <![endif]--></p>
<ol type="1">
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">On a fresh install, why does Apache have three config files &#8211; srm.conf, access.conf and httpd.conf?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; The first two are remnants from the NCSA times, and generally you should be ok if you delete the first two, and stick with httpd.conf.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What’s the command to stop Apache?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; kill the specific process that httpd is running under, or <em>killall httpd. </em>If you have apachectl installed, use apachectl stop.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What does <em>apachectl graceful</em> do?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; It sends a SIGUSR1 for a restart, and starts the apache server if it’s not running.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">How do you check for the httpd.conf consistency and any errors in it?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; apachectl configtest</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">When I do ps -aux, why do I have one copy of httpd running as root and the rest as nouser?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; You need to be a root to attach yourself to any Unix port below 1024, and we need 80.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">But I thought that running apache as a root is a security risk?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; That one root process opens port 80, but never listens to it, so no user will actually enter the site with root rights. If you kill the root process, you will see the other kids disappear as well.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">Why do I get the message &#8220;… no listening sockets available, shutting down&#8221;?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; In Apache 2 you need to have a listen directive. Just put <em>Listen 80</em> in httpd.conf.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">How do you set up a virtual host in Apache?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';">&lt;VirtualHost www.techinterviews.com&gt;</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> ServerAdmin admin@techinterviews.com</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> DocumentRoot /home/apache/share/htdocs/hostedsites</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> ServerName <span style="text-decoration: underline;"><span style="color: blue;">www.techinterviews.com</span></span></span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> ErrorLog /home/apache/logs/error/hostedsites/error_log</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> TransferLog /home/apache/logs/access/hostedsites/access_log</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';">&lt;/VirtualHost&gt;</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What is ServerType directive?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; It defines whether Apache should spawn itself as a child process (standalone) or keep everything in a single process (inetd). Keeping it inetd conserves resources. This is deprecated, however.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What is mod_vhost_alias?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; It allows hosting multiple sites on the same server via simpler configurations.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What does htpasswd do?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; It creates a new user in a specified group, and asks to specify a password for that user.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">If you specify both <em>deny from all</em> and <em>allow from all</em>, what will be the default action of Apache?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; In case of ambiguity deny always takes precedence over allow.</span></li>
</ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/">Apache and HTTP Interview Questions and Answers &#8211; Interview Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
