https://github.com/synergex/url_encoding
Function that returns a URL encoded string for use with the HTTP protocol. (Update for Synergy 9.5 compatibility)
https://github.com/synergex/url_encoding
Last synced: 4 months ago
JSON representation
Function that returns a URL encoded string for use with the HTTP protocol. (Update for Synergy 9.5 compatibility)
- Host: GitHub
- URL: https://github.com/synergex/url_encoding
- Owner: Synergex
- License: other
- Created: 2021-12-14T19:06:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-26T13:50:56.000Z (almost 4 years ago)
- Last Synced: 2025-08-29T10:49:52.514Z (10 months ago)
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# URL_Encoding
**Created Date:** 1/7/2003
**Last Updated:** 10/19/2010
**Description:** Function that returns a URL encoded string for use with the HTTP protocol. (Update for Synergy 9.5 compatibility)
**Platforms:** Windows; Unix; OpenVMS
**Products:** HTTP API
**Minimum Version:** 8.1
**Author:** Steve Ives
**Additional Information:**
When passing data via the HTTP protocol, either as URI parameters in an HTTP GET
operation, or as body data in an HTTP POST operation, certain characters must be
'escaped', usually by replacing them with their hexadecimal values. This process
is referred to as "URL Encoding".
More details can be found in RFC 2396 (URI General Syntax)
This function accepts a string in parameter 1 and returns a URL encoded version
of that string.
This function must be declared before use, as follows:
external function
url_encode ,a
An example of using this function is:
url = "http://www.domain.com/page.asp?location=" + %url_encode("Gold River (CA)")
Which would set the variable url to:
http://www.domain.com/page.asp?location=Gold+River+%28CA%29