#include int main () { http_t *http = httpConnectEncrypt (cupsServer (), ippPort (), cupsEncryption ()); if (!http) return 1; ipp_t *request = ippNew (); ipp_t *answer; cups_lang_t *language = cupsLangDefault (); request->request.op.operation_id = CUPS_GET_PRINTERS; request->request.op.request_id = 1; ippAddString (request, IPP_TAG_OPERATION, IPP_TAG_CHARSET, "attributes-charset", NULL, "utf-8"); ippAddString (request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE, "attributes-natural-language", NULL, language->language); answer = cupsDoRequest (http, request, "/"); ippDelete (answer); httpClose (http); return 0; }