xapian-bridge C port

endlessm/eos-sdk#2463
I added a check for the response content type to match `application/json`