문제

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