問題描述
網絡上有免費提供的 HTML URL 編碼功能嗎?(在 C 中實現) (Is there any HTML URL encoding function freely available on web?? (Implementation in C))
I want to use URL encoder for my C program. I am wondering if there is any freely available URL encoding function implemented in C (on the web)??? I tried searching it, but couldn't get one :(
參考解法
方法 1:
I find the standard for URL's isn't that hard. You can even limit yourself to HTTP URL's in most cases. It's pretty straight-forward to create your own urlencoder.
方法 2:
If you are doing any serious development in C, you should really look into using the Apache Portable Runtime and APR Utilities libraries from Apache.
(by web_newbie4192、Stijn Sanders、D.Shawley)