wwHTTP::InternetCrackUrl

This method breaks down an incoming URL into its component pieces.

loUrl = o.InternetCrackUrl(lcUrl)

Return Value

loUrl object or NULL on failure.

Parameters

lcUrl
The URL to break into component pieces.

Example

oIP=CREATE("wwHttp")
loUrl = oIP.InternetCrackUrl("http://www.west-wind.com/wconnect/wc.dll?wwdemo~Test")

? loUrl.cProtocol
? loUrl.cServer
? loUrl.cPath 
? loUrl.cQueryString
? loUrl.cPort


*** Result:
http
www.west-wind.com
/wconnect/wc.dll
?wwdemo~test
80

See also:

West Wind Web Connection

© West Wind Technologies, 2023 • Updated: 04/06/18
Comment or report problem with topic