PowerBuilder
PowerBuilder
Example: Http.GetUrlPath method
Demonstrates theGetUrlPath method.
Chilkat PowerBuilder Downloads
integer li_rc
integer li_Success
oleobject loo_Http
string ls_Url
li_Success = 0
loo_Http = create oleobject
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
destroy loo_Http
MessageBox("Error","Connecting to COM object failed")
return
end if
ls_Url = "https://example.com/folder/page?lang=en&sort=asc#section2"
Write-Debug loo_Http.GetUrlPath(ls_Url)
// Output:
// /folder/page
destroy loo_Http