Chilkat HOME .NET Core C# Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi ActiveX Delphi DLL Go Java Lianja Mono C# Node.js Objective-C PHP ActiveX PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(PowerShell) Explaining the Path Part of a URLThe general URL syntax is based on this format: <scheme>://<host>:<port>/<path>?<query>#<frag> Note: We've left out a few less commonly used parts, such as username/password and params that are not query params. The path part of a URL is the local name for a resource on a server. When an HTTP request is going to be sent to "www.something.com", the HTTP client must first resolve the domain name to an IP address. It then establishes the connection to that IP address, potentially negotiating an SSL/TLS secure channel if the scheme is "https". The HTTP request is then sent over the connection. However, a given IP address could host many websites. It is the HOST header within the HTTP request header that allows the server to direct the request to the correct website. At this point, it is the path part of the URL that is used to locate the resource within the website.
Add-Type -Path "C:\chilkat\ChilkatDotNet47-9.5.0-x64\ChilkatDotNet47.dll" $req = New-Object Chilkat.HttpRequest # An HTTP request object can be loaded from a full URL. $req.SetFromUrl("https://www.youtube.com/watch?v=fAZdTchQePc&t=45s") # This Path property is set to the path part of the URL (including the starting "/" char). # In this case, the path will be "/watch" $("path = " + $req.Path) |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.