Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   ReplaceVariableInUrl
  Home |  WebHare Lite |  Downloads |  HareScript |  Websites/CMS |  Applications
Search for:  in: 
HareScript
Internet connectivity
 
File transfer (FTP)
Hypertext transfer (HTTP)
IMAP library
MIME and RFC822
POP3 email
Simple Mail Transfer Protocol (SMTP)
TCP/IP connections
ReplaceVariableInUrl
  Rewrite an URL to replace an existing variable
 
Library wh::internet/http.whlib
 
Syntax PUBLIC STRING FUNCTION ReplaceVariableInUrl (STRING url,STRING overridevar,STRING overridevalue)
 
Description This function replaces the requested variable to a URL, takes care of proper
URL encoding and adding the necessary '?' and '&" characters to the URL.
This function will eliminate duplicates if the requested variable occurs more
than once. If the requested variable does not exist on the URL, it will be added
 
Parameters
url URL to modify
overridevar Name of the variable to replace
overridevalue Value to set this variable to
 
Returns The rewritten URL
 
 
In library 'http'
AddVariableToUrl
CloseHTTPServer
DecodeHTTPAuthenticationHeader
DeleteVariableFromUrl
EncodeDigestAuthorizationHeader
FormatHttpDateTime
FormatISO8601DateTime
GetHTTPPage
GetHTTPPageHeaders
GetVariableFromUrl
IsAbsoluteUrl
IsValidPlainHTTPURL
MakeRelativeLinkFromURL
OpenHTTPServer
OpenHTTPServerOnSocket
OpenSecureHTTPServer
PostHTTPPage
PostHTTPPageMultipart
ReplaceVariableInUrl
ResolveToAbsoluteURL
SendHTTPRequest
SetHTTPAuthentication
 
Top To top of page