Upload multiple files to php backend server from ruby client

Hi,

I am trying to upload files from my computer to server using socket
programming, I successfully uploaded the files via java client and
server (the php handler at server is NOT a ‘Form’, I did it using
httpurlconnection of Java)

Problem:

Now I would like to try it using ‘ruby client’ and upload files to my
server. But I am not getting from where to start!

Please help.

Thanks,

P.S: This is not a ‘Form’ based upload.