Question

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.

Was it helpful?

Solution

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()

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top