Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

webcommon.urlencode(3kaya) [debian man page]

WebCommon.urlEncode(3kaya)				       Kaya module reference					WebCommon.urlEncode(3kaya)

NAME
WebCommon::urlEncode - URL encode a string SYNOPSIS
String urlEncode( String x ) ARGUMENTS
x The string to encode DESCRIPTION
URL encode a string. You should use this to encode reserved characters in URLs that you wish to be passed literally. // trying to pass "http://www.example.com" as a parameter url = "http://localhost/test.cgi?url="; url += urlEncode("http://www.example.com"); // url = http://localhost/test.cgi?url=http%3A%2F%2Fwww.example.com Note that in the example above, encoding the whole URL would be incorrect - that would create a relative URL beginning "http://". AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ LICENSE
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. RELATED
WebCommon.urlDecode(3kaya) Kaya October 2012 WebCommon.urlEncode(3kaya)

Check Out this Related Man Page

Prelude.isPunct(3kaya)					       Kaya module reference					    Prelude.isPunct(3kaya)

NAME
Prelude::isPunct - Checks if the character is punctuation SYNOPSIS
Bool isPunct( Char c ) ARGUMENTS
c The character DESCRIPTION
Returns true if the character is punctuation. AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ LICENSE
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. RELATED
Prelude.isAlpha(3kaya) Prelude.isAlnum(3kaya) Prelude.isDigit(3kaya) Prelude.isLineEnding(3kaya) Prelude.isLower(3kaya) Prelude.isUpper(3kaya) Prelude.isGraph(3kaya) Prelude.isSpace(3kaya) Kaya October 2012 Prelude.isPunct(3kaya)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Howto make an URL world readable

Currently this url: http://bioinfo-z.comp.nus.edu.sg/Test/ Is only accessible through my local network (for external user need VPN). My question is how can I make that URL accessible for everybody even those outside my network? That url is served under Solaris 10 and I do have SU... (3 Replies)
Discussion started by: monkfan
3 Replies

2. Shell Programming and Scripting

parsing url string

Hi, I have a url like this:- http://resource.ibab.ac.in/cgi-bin/pubmed_abstract/y.cgi?pmid=+1.10529272+&pmid=+3.8379586 I want to parse the url string.I want to get the values 1.10529272 3.8379586 How do i do that? (5 Replies)
Discussion started by: vanitham
5 Replies

3. Shell Programming and Scripting

need a little kick with sed, got it almost but on glitch

hi friends. yo i have a textfile with urlīs in it sometimes middle in text, sometimes one url alone is a line i append a string right behind the domain name so that http://unix.com becomes http://unix.com.APPENDTHIS on all occasions. i use this sed-line to achieve this: sed -i... (3 Replies)
Discussion started by: scarfake
3 Replies

4. UNIX for Advanced & Expert Users

apache encode special characters in URL

Hi all, How can I enable encoding of special characters present in URL? eg If the URL is http://127.0.0.1/test.cgi?param1=test & test co it shouldbe encoded to http://127.0.0.1/test.cgi?param1=test%20%26%20test%20co Thanks and Reagards, uttam hoode (3 Replies)
Discussion started by: uttamhoode
3 Replies

5. Shell Programming and Scripting

URL encoding

Hi All, I want to do URL encoding using shell script in my project. I decided that the sed is the correct tool to do this. But I am unable achieve what I wanted using sed. kindly help me to get rid of this. My requirement is , there will be one URL with all special character, spaces etc... ... (8 Replies)
Discussion started by: Vichu
8 Replies

6. Shell Programming and Scripting

how to urlencode a string?

Hi there, I'm desperatly trying to encode a url in a shell script. localhost:~# cat sendalert.sh #!/bin/bash url="http://www.xxxxx.fr/addalert.php?login=xxx&pass=xxx&msg=" url+=$(php -r "echo rawurlencode('$1');") echo $url # wget -O- "$url" localhost:~# ./sendalert.sh "hello world"... (2 Replies)
Discussion started by: chebarbudo
2 Replies

7. Shell Programming and Scripting

how to use in bash variables and quotes

I have some troubles with variables and quotes... I want: if $URL is empty (no user input) go to http://www.localhost/index.php/ else add this string (search) "?s=+$URL" EXAMPLE: No user input string= http://www.localhost/index.php/ User input = "unix" string=... (3 Replies)
Discussion started by: aspire
3 Replies

8. Shell Programming and Scripting

adding new line after finding specific text

hello i need some help here are the contents of my file. test.txt this is filename 1.mp3 http://www.url.com/filenamehashed filename 2.mp3 http://www.url.com/fileamehashed something_else.zip http://www.url.com/filenamehashed so this file has 100 of these lines filename url I would... (9 Replies)
Discussion started by: mscice
9 Replies

9. Shell Programming and Scripting

stripping http and https from a url using sed

I have to write a sed script which removes http and https from a URL. So if a URL is https://www.example.com or Example Web Page, script should return me Example Web Page i tried echo $url | sed 's|^http://||g'. It doesn't work. Please help (4 Replies)
Discussion started by: vickylife
4 Replies

10. Red Hat

URL Redirection

Hi Please help, how to setup I have a URL address http://10.XX.XX.XXX:1234/abc/login.jsp - running in linux How to redirect this to http://www.abc.com.ph This way the IP address and port will not be visible to the user many thanks (2 Replies)
Discussion started by: kaibiganmi
2 Replies

11. Shell Programming and Scripting

URL/HTML encoding

Hey guys, looking for a way to encode a string into URL and HTML in a bash script that I'm making to encode strings in various different digests etc. Can't find anything on it anywhere else on the forums. Any help much appreciated, still very new to bash and programming etc. (4 Replies)
Discussion started by: 3therk1ll
4 Replies

12. HP-UX

Browser to check URL in hpux.

Hello Expert, I want to test the url in hp-ux, so it is possible via putty ?? Also have xmanager on the same system. (5 Replies)
Discussion started by: purushottamaher
5 Replies

13. Shell Programming and Scripting

Extracting the column containing URL from a text file

I have the file like this: Timestamp URL Text 1331635241000 http://example.com Peoples footage at www.test.com,http://example4.com 1331635231000 http://example1.net crack the nuts http://example6.com 1331635280000 http://example2.net ... (3 Replies)
Discussion started by: csim_mohan
3 Replies

14. Shell Programming and Scripting

Url encoding a string using sed

Hi I was hoping some one would know if it is possible to url encode a string using sed? My problem is I have extracted some key value pairs from a text file with sed, and will be inserting these pairs as source variables into a curl script to automatically download some xml from our server. My... (5 Replies)
Discussion started by: Paul Walker
5 Replies