After quite a bit of searching, I have been unable to find a good way to dynamically generate query strings and x-www-form-urlencoded post data. I am writing a library that will do this quite frequently. If need be, I can write a utility to build these strings, but I would really like to avoid re-invinting the wheel.

Are there any libraries, or common practices for dynamically generating query strings in C?

I am using libcurl.

有帮助吗?

解决方案

This took a little bit of Google-fu (c encode query string -C# -objective), but I ended up with:

libccgi - C CGI Library 1.1

Specifically, its function CGI_encode_query()

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top