http - Parameters in Path Segments of URL -


there 1 interesting thing in url format:
parameters in path segments of url.

for more information see section "2.2.5" in
"o'reilly - http - definitive guide".

or in official specification https://www.ietf.org/rfc/rfc2396.txt section 3.3.

this book can found freely in internet.

let's consider following url:

http://www.example.com/first-segment/second-segment/index.html?type=helloworld 

here /first-segment/second-segment/index.html path part of url.

  1. and first-segment first segment of path
  2. second-segment second segment of path
  3. index.html third segment of path

it stated in book each segment have individual parameters separated semicolon ";". in our example be:

http://www.example.com/first-segment;f1=www/second-segment;s1=1;s2=2/index.html;i1=100;abc=200?type=helloworld 
  1. here f1 - parameter first-segment
  2. s1 , s2 - parameters second-segment
  3. i1 , abc parameters index.html

the question is: know practical examples of such parameters in urls?

i not know example of parameters in path segment.

but close example connection , sftp parameters in (expired) sftp url proposal.

there's 1 proposed connection parameter, fingerprint ssh host key fingerprint:

sftp://username:password;fingerprint=ssh-dss-0b-77-...@example.com/ 

and 1 proposed sftp parameter, typecode transfer mode (ascii vs. binary). there's no official example, should like:

sftp://username:password@example.com/path/file;typecode=i 

(what actually, while semantically different, has syntax of "path" parameter)


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -