new_url = webread(url)
| Parameter | Description |
|---|---|
| url | a string: URL to a web service. |
| Parameter | Description |
|---|---|
| new_url | a string: encoded url. |
urlencode replaces special characters in URLs with escape characters.
Special characters in URLs need to be replaced with escape characters. For example, spaces should be replaced with '%20'.
url = 'https://httpbin.org/get?query=hello world';
res = urlencode(url)
| Version | Description |
|---|---|
| 1.11.0 | initial version |