SkillAgentSearch skills...

Urlencode

Commandline Urlencoder written in C

Install / Use

/learn @wcharczuk/Urlencode
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

urlencode / urldecode

A simple (set of) commandline utilities to url encode/decode strings.

But can't i just write an awk/perl/python script?

You sure can! I just wanted to see if I could write this in C.

INSTALLATION

Run the make file, and make install.

make; make install

This will drop the urlencode and urldecode binaries in your /usr/local/bin directory.

USAGE

Either pass in the string as an arument

urlencode "hello world!"
hello%20world%21⏎ 

or pipe some text to it

echo "hello world!" | urlencode
hello%20world%21⏎

or pipe them together because, why not?

echo "hello world!" | urlencode | urldecode
hello world!⏎

That's about it. I am a total newbie when it comes to C, so this is not memory efficient or even recommended to be used, but it was fun to write.

Pull requests welcome!

View on GitHub
GitHub Stars19
CategoryDevelopment
Updated11mo ago
Forks11

Languages

C

Security Score

82/100

Audited on Apr 21, 2025

No findings