Changed back to use lhttpc and fixed code to not pass to content-type header parameters