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, 1996-2019 • Updated: 04/06/18
Comment or report problem with topic