Adding multipart form posting. Also adding dependency on apache httpcore libraries.