Communication with url

As my problem is very far from my experiences, I hope somebody can help me with detailed codes:

I have to send a pdf-file, which is f.e. in the directory “HD” of my application (HD= GetFolderItem("")) to an URL www.xyz.com/subd/subd2 . (fake adress)
I was told, it has to be a “multipart post request” and one of the parameters shold be this pdf which should have the name “file”.

After a while this homepage will - if it was reached and not out of order - return an answer, which is in json-Format, which I have to read into a memoryblock to get all the informations out of it, which I need.

My idea is to work with HTTPSocket, Looks simple (to someone, who understands :frowning: )

[quote=191015:@Robert Blazek]As my problem is very far from my experiences, I hope somebody can help me with detailed codes:

I have to send a pdf-file, which is f.e. in the directory “HD” of my application (HD= GetFolderItem("")) to an URL www.xyz.com/subd/subd2 . (fake adress)
I was told, it has to be a “multipart post request” and one of the parameters shold be this pdf which should have the name “file”.

After a while this homepage will - if it was reached and not out of order - return an answer, which is in json-Format, which I have to read into a memoryblock to get all the informations out of it, which I need.

My idea is to work with HTTPSocket, Looks simple (to someone, who understands :frowning: )[/quote]

A first glance all that seems possible with an HTTPSocket indeed.

It would help a great deal to have a look at the specs of the site in question. What you describe seems to be a web service, but it is difficult to help with code from a vague description.