Hi
I want to make the below post request using httpclient libary in java. Please help me to find a solution for this.
POST /upload/drive/v2/files?uploadType=multipart HTTP/1.1
Host: www.googleapis.com
Authorization: Bearer your_auth_token
Content-Type: multipart/related; boundary="foo_bar_baz"
Content-Length: number_of_bytes_in_entire_request_body
 
--foo_bar_baz
Content-Type: application/json; charset=UTF-8
 
{
  "title": "My File"
}
 
--foo_bar_baz
Content-Type: image/jpeg
 
JPEG data
--foo_bar_baz--


Thanks