URL (Uniform Resource Locator) Notes | Basic Computer Engineering | RGPV BTech First Year

URL (Uniform Resource Locator) Notes | Basic Computer Engineering | RGPV BTech First Year


URL (Uniform Resource Locator)

URL (Uniform Resource Locator) Internet рддрдерд╛ World Wide Web (WWW) рдХрд╛ рдПрдХ рдЕрддреНрдпрдВрдд рдорд╣рддреНрд╡рдкреВрд░реНрдг рднрд╛рдЧ рд╣реИред URL рдХрд┐рд╕реА рднреА Web Page, Website, Image, Video, Document рдЕрдерд╡рд╛ рдЕрдиреНрдп Online Resource рдХрд╛ Unique Address рд╣реЛрддрд╛ рд╣реИред рдЬрд┐рд╕ рдкреНрд░рдХрд╛рд░ рдХрд┐рд╕реА рдШрд░ рдХрд╛ Address рдЙрд╕рдХреА рдкрд╣рдЪрд╛рди рдмрддрд╛рддрд╛ рд╣реИ, рдЙрд╕реА рдкреНрд░рдХрд╛рд░ URL Internet рдкрд░ рдЙрдкрд▓рдмреНрдз рдХрд┐рд╕реА Resource рдХреА рдкрд╣рдЪрд╛рди рддрдерд╛ Location рдмрддрд╛рддрд╛ рд╣реИред Web Browser URL рдХреА рд╕рд╣рд╛рдпрддрд╛ рд╕реЗ рд╕рдВрдмрдВрдзрд┐рдд Web Server рддрдХ рдкрд╣реБрдБрдЪрддрд╛ рд╣реИ рдФрд░ User рдХреЛ рдЖрд╡рд╢реНрдпрдХ Information рдЙрдкрд▓рдмреНрдз рдХрд░рд╛рддрд╛ рд╣реИред

рдЖрдЬ рдХреЗ рд╕рдордп рдореЗрдВ рд▓рдЧрднрдЧ рдкреНрд░рддреНрдпреЗрдХ Website, Web Application, API, Cloud Service рддрдерд╛ Digital Platform URL рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рддрд╛ рд╣реИред рдЗрд╕рд▓рд┐рдП URL рдХреА рд╕рдВрд░рдЪрдирд╛ (Structure), Components рддрдерд╛ Working рдХреЛ рд╕рдордЭрдирд╛ рдкреНрд░рддреНрдпреЗрдХ Computer Engineering Student рдХреЗ рд▓рд┐рдП рдЖрд╡рд╢реНрдпрдХ рд╣реИред


Introduction to URL

URL Internet рдкрд░ рдЙрдкрд▓рдмреНрдз рдХрд┐рд╕реА Resource рддрдХ рдкрд╣реБрдБрдЪрдиреЗ рдХрд╛ Standard рддрд░реАрдХрд╛ рд╣реИред Browser URL рдХреЛ рдкрдврд╝рдХрд░ рдпрд╣ рдирд┐рд░реНрдзрд╛рд░рд┐рдд рдХрд░рддрд╛ рд╣реИ рдХрд┐ рдХрд┐рд╕ Protocol рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдирд╛ рд╣реИ, рдХрд┐рд╕ Server рд╕реЗ Connection рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдирд╛ рд╣реИ рддрдерд╛ рдХреМрди-рд╕рд╛ Resource User рдХреЛ рджрд┐рдЦрд╛рдирд╛ рд╣реИред

рдЬрдм рднреА User Browser рдореЗрдВ рдХрд┐рд╕реА Website рдХрд╛ Address Type рдХрд░рддрд╛ рд╣реИ, рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ рд╡рд╣ URL рд╣реА рджрд░реНрдЬ рдХрд░рддрд╛ рд╣реИред Browser URL рдХреЗ рдЖрдзрд╛рд░ рдкрд░ рд╕рдВрдмрдВрдзрд┐рдд Server рд╕реЗ рд╕рдВрдкрд░реНрдХ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рддрд╛ рд╣реИред


Definition of URL

URL (Uniform Resource Locator) Internet рдкрд░ рдЙрдкрд▓рдмреНрдз рдХрд┐рд╕реА Resource рдХрд╛ Unique Address рд╣реЛрддрд╛ рд╣реИ рдЬреЛ рдЙрд╕рдХреА Location рддрдерд╛ Access Method рджреЛрдиреЛрдВ рдХреЛ рджрд░реНрд╢рд╛рддрд╛ рд╣реИред

URL = Unique Address of a Resource Available on the Internet

Need of URL

  • Web Resources рдХреЛ Locate рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдПред
  • Web Pages Access рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдПред
  • Client рдФрд░ Server рдХреЗ рдмреАрдЪ Communication рдХреЗ рд▓рд┐рдПред
  • Unique Resource Identification рдХреЗ рд▓рд┐рдПред
  • Navigation рдХреЛ рд╕рд░рд▓ рдмрдирд╛рдиреЗ рдХреЗ рд▓рд┐рдПред
  • Internet Services рдЙрдкрдпреЛрдЧ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдПред

Characteristics of URL

  • Unique Resource Address.
  • Uses Standard Format.
  • Supports Multiple Protocols.
  • Human Readable.
  • Globally Accessible.
  • Works with Web Browsers.

Advantages of URL

  • Easy Resource Identification.
  • Fast Navigation.
  • Supports Hyperlinking.
  • Easy Sharing of Resources.
  • Standardized Format.
  • Supports Search Engines.

Limitations of URL

  • Broken Links.
  • Long and Complex URLs.
  • Case Sensitive Paths.
  • Typing Errors.
  • URL Spoofing Risks.
  • Resource May Change or Be Removed.

Structure of URL

рдПрдХ URL рдХрдИ Components рд╕реЗ рдорд┐рд▓рдХрд░ рдмрдирд╛ рд╣реЛрддрд╛ рд╣реИред рдкреНрд░рддреНрдпреЗрдХ Component рдХрд╛ рдЕрдкрдирд╛ рд╡рд┐рд╢реЗрд╖ рдХрд╛рд░реНрдп рд╣реЛрддрд╛ рд╣реИред

https://www.example.com:443/folder/index.html?id=100#about
Component Example
Protocol https
Domain Name www.example.com
Port 443
Path /folder/index.html
Query String ?id=100
Fragment #about

Components of URL

URL рдХреЗ рдкреНрд░рддреНрдпреЗрдХ рднрд╛рдЧ рдХрд╛ рдЕрд▓рдЧ-рдЕрд▓рдЧ рдЙрджреНрджреЗрд╢реНрдп рд╣реЛрддрд╛ рд╣реИред Browser рдЗрдиреНрд╣реАрдВ Components рдХреЗ рдЖрдзрд╛рд░ рдкрд░ Resource рдХреЛ Locate рдХрд░рддрд╛ рд╣реИред


Protocol (Scheme)

Protocol рдпрд╣ рдирд┐рд░реНрдзрд╛рд░рд┐рдд рдХрд░рддрд╛ рд╣реИ рдХрд┐ Browser рддрдерд╛ Server рдХреЗ рдмреАрдЪ Communication рдХрд┐рд╕ рдирд┐рдпрдо (Protocol) рдХреЗ рдЕрдиреБрд╕рд╛рд░ рд╣реЛрдЧреАред рд╕рд╛рдорд╛рдиреНрдп Protocols рдореЗрдВ HTTP, HTTPS, FTP рддрдерд╛ Mailto рд╢рд╛рдорд┐рд▓ рд╣реИрдВред

https:// ftp:// mailto:

Domain Name

Domain Name рдХрд┐рд╕реА Website рдХрд╛ Human Readable Address рд╣реЛрддрд╛ рд╣реИред DNS (Domain Name System) рдЗрд╕рдХреА рд╕рд╣рд╛рдпрддрд╛ рд╕реЗ Domain Name рдХреЛ IP Address рдореЗрдВ рдкрд░рд┐рд╡рд░реНрддрд┐рдд рдХрд░рддрд╛ рд╣реИред

www.example.com

Port Number

Port Number Server рдкрд░ рдЪрд▓ рд░рд╣реА рдХрд┐рд╕реА рд╡рд┐рд╢реЗрд╖ Service рдХреА рдкрд╣рдЪрд╛рди рдХрд░рддрд╛ рд╣реИред рдпрджрд┐ Port Number URL рдореЗрдВ рди рджрд┐рдпрд╛ рдЬрд╛рдП рддреЛ Browser Default Port рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рддрд╛ рд╣реИ, рдЬреИрд╕реЗ HTTP рдХреЗ рд▓рд┐рдП 80 рддрдерд╛ HTTPS рдХреЗ рд▓рд┐рдП 443ред

https://example.com:443

Path

Path Server рдкрд░ рдЙрдкрд▓рдмреНрдз рдХрд┐рд╕реА рд╡рд┐рд╢реЗрд╖ File рдЕрдерд╡рд╛ Resource рдХрд╛ Location рджрд░реНрд╢рд╛рддрд╛ рд╣реИред

/folder/index.html

Query String

Query String URL рдХрд╛ рд╡рд╣ рднрд╛рдЧ рд╣реЛрддрд╛ рд╣реИ рдЬреЛ рдЕрддрд┐рд░рд┐рдХреНрдд Parameters Server рдХреЛ рднреЗрдЬрдиреЗ рдХреЗ рд▓рд┐рдП рдЙрдкрдпреЛрдЧ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред рдпрд╣ рд╕рд╛рдорд╛рдиреНрдпрддрдГ ? рдЪрд┐рдиреНрд╣ рд╕реЗ рдкреНрд░рд╛рд░рдореНрдн рд╣реЛрддрд╛ рд╣реИ рддрдерд╛ рдПрдХ рдпрд╛ рдЕрдзрд┐рдХ Key-Value Pairs рд░рдЦ рд╕рдХрддрд╛ рд╣реИред

https://example.com/product?id=101&category=laptop

Fragment Identifier

Fragment Identifier URL рдХрд╛ рдЕрдВрддрд┐рдо рднрд╛рдЧ рд╣реЛрддрд╛ рд╣реИ рдЬреЛ рдХрд┐рд╕реА Web Page рдХреЗ рд╡рд┐рд╢реЗрд╖ Section рддрдХ рд╕реАрдзреЗ рдкрд╣реБрдБрдЪрдиреЗ рдХреЗ рд▓рд┐рдП рдЙрдкрдпреЛрдЧ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред рдпрд╣ # рдЪрд┐рдиреНрд╣ рд╕реЗ рдкреНрд░рд╛рд░рдореНрдн рд╣реЛрддрд╛ рд╣реИред

https://example.com/tutorial.html#chapter5

Absolute URL

Absolute URL рд╡рд╣ рдкреВрд░реНрдг (Complete) URL рд╣реЛрддрд╛ рд╣реИ рдЬрд┐рд╕рдореЗрдВ Protocol, Domain Name рддрдерд╛ Resource Path рд╕рд╣рд┐рдд рд╕рднреА Components рд╢рд╛рдорд┐рд▓ рд╣реЛрддреЗ рд╣реИрдВред рдпрд╣ рдХрд┐рд╕реА рднреА рд╕реНрдерд╛рди рд╕реЗ Resource рдХреЛ Access рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдЙрдкрдпреЛрдЧ рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИред

https://www.example.com/images/logo.png

Relative URL

Relative URL рдХреЗрд╡рд▓ рд╡рд░реНрддрдорд╛рди Website рдЕрдерд╡рд╛ Directory рдХреЗ рдЖрдзрд╛рд░ рдкрд░ Resource рдХрд╛ Path рдмрддрд╛рддрд╛ рд╣реИред рдЗрд╕рдореЗрдВ Domain Name рддрдерд╛ Protocol рд╢рд╛рдорд┐рд▓ рдирд╣реАрдВ рд╣реЛрддреЗред

images/logo.png ../css/style.css

Difference between URL, URI and URN

Feature URL URI URN
Purpose Locates Resource Identifies Resource Names Resource
Location Information Yes Optional No
Example https://example.com mailto:abc@example.com urn:isbn:9789355516550

URL Encoding

URL Encoding рд╡рд╣ рдкреНрд░рдХреНрд░рд┐рдпрд╛ рд╣реИ рдЬрд┐рд╕рдореЗрдВ Special Characters рддрдерд╛ Spaces рдХреЛ рдЙрдирдХреЗ ASCII рдЖрдзрд╛рд░рд┐рдд Encoded Format рдореЗрдВ рдкрд░рд┐рд╡рд░реНрддрд┐рдд рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ рддрд╛рдХрд┐ URL рд╕рд╣реА рдкреНрд░рдХрд╛рд░ рд╕реЗ Internet рдкрд░ Transmit рд╣реЛ рд╕рдХреЗред

Character Encoded Value
Space %20
@ %40
# %23
& %26

Applications of URL

  • Website Navigation.
  • Web Page Identification.
  • API Access.
  • Cloud Storage Links.
  • File Download.
  • Search Engine Indexing.
  • Hyperlink Creation.
  • Online Forms.
  • E-Commerce Websites.
  • Digital Marketing Campaigns.

Common URL Errors

  • Invalid URL Format.
  • Broken URL.
  • Misspelled Domain Name.
  • Incorrect Protocol.
  • 404 Not Found Error.
  • Invalid Query Parameters.
  • Expired Resource Link.
  • Access Denied Error.

Best Practices

  • Use HTTPS Instead of HTTP.
  • Keep URLs Short and Meaningful.
  • Avoid Special Characters.
  • Use Lowercase Letters.
  • Create SEO Friendly URLs.
  • Use Proper URL Encoding.
  • Avoid Broken Links.
  • Maintain Consistent URL Structure.

Industrial Importance

URL рдЖрдзреБрдирд┐рдХ Web Technologies рдХрд╛ рдореВрд▓ рдЖрдзрд╛рд░ рд╣реИред рдкреНрд░рддреНрдпреЗрдХ Website, REST API, Cloud Service, Mobile Application рддрдерд╛ E-Commerce Platform URL рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рддрд╛ рд╣реИред Search Engine Optimization (SEO), Digital Marketing, Web Development, API Integration рддрдерд╛ Cloud Computing рдореЗрдВ URL Structure рдХрд╛ рдЕрддреНрдпрдзрд┐рдХ рдорд╣рддреНрд╡ рд╣реЛрддрд╛ рд╣реИред рд╕рд╛рдлрд╝, рд╕реБрд░рдХреНрд╖рд┐рдд рдПрд╡рдВ SEO Friendly URLs Website рдХреА Usability рддрдерд╛ Search Ranking рдХреЛ рдмреЗрд╣рддрд░ рдмрдирд╛рдиреЗ рдореЗрдВ рд╕рд╣рд╛рдпрддрд╛ рдХрд░рддреЗ рд╣реИрдВред


Viva Questions

  1. What is URL?
  2. What is the full form of URL?
  3. Explain the structure of a URL.
  4. What is the purpose of Protocol in a URL?
  5. Differentiate Absolute URL and Relative URL.
  6. What is Query String?
  7. What is Fragment Identifier?
  8. Differentiate URL, URI and URN.
  9. What is URL Encoding?
  10. State the applications of URL.

Exam Oriented Important Questions

  1. Define URL with suitable examples.
  2. Explain the need, characteristics, advantages and limitations of URL.
  3. Describe the complete structure of a URL.
  4. Explain different components of a URL.
  5. Differentiate Absolute URL and Relative URL.
  6. Differentiate URL, URI and URN with suitable examples.
  7. Explain URL Encoding with examples.
  8. Discuss the applications and industrial importance of URL.

Conclusion

URL Internet рддрдерд╛ World Wide Web рдХрд╛ рдПрдХ рдореВрд▓рднреВрдд рдШрдЯрдХ рд╣реИ рдЬреЛ рдХрд┐рд╕реА рднреА Online Resource рддрдХ рдкрд╣реБрдБрдЪрдиреЗ рдХрд╛ рдорд╛рдирдХреАрдХреГрдд (Standardized) рддрд░реАрдХрд╛ рдкреНрд░рджрд╛рди рдХрд░рддрд╛ рд╣реИред рдЗрд╕рдХреА рд╕рд╣реА рд╕рдВрд░рдЪрдирд╛, Components рддрдерд╛ Working рдХреЛ рд╕рдордЭрдирд╛ Web Development, Networking, Search Engine Optimization (SEO), API Development рддрдерд╛ Cloud Computing рдЬреИрд╕реЗ рдХреНрд╖реЗрддреНрд░реЛрдВ рдХреЗ рд▓рд┐рдП рдЕрддреНрдпрдВрдд рдЖрд╡рд╢реНрдпрдХ рд╣реИред URL рдХрд╛ рдкреНрд░рднрд╛рд╡реА рдЙрдкрдпреЛрдЧ рд╕реБрд░рдХреНрд╖рд┐рдд, рддреЗрдЬрд╝ рддрдерд╛ рд╡реНрдпрд╡рд╕реНрдерд┐рдд Web Navigation рд╕реБрдирд┐рд╢реНрдЪрд┐рдд рдХрд░рддрд╛ рд╣реИред

Related Articles

Manipulators in C++ Notes | endl, setw, setprecision, setfill | Basic Computer Engineering | RGPV BTech First Year

0...

Read More тЖТ

Type Conversion in C++ Notes | Basic Computer Engineering | RGPV BTech First Year

Type Co...

Read More тЖТ

Assignment Operator in C++ Notes | Basic Computer Engineering | RGPV BTech First Year

Assignm...

Read More тЖТ

Copy Constructor in C++ Notes | Basic Computer Engineering | RGPV BTech First Year

Copy Co...

Read More тЖТ

this Pointer in C++ Notes | Basic Computer Engineering | RGPV BTech First Year

this Po...

Read More тЖТ