I finally found an example to upload both file and text data from Android to the server. It works only with additional libraries. My first question is how to parse received data on the server side? I could not find the format of the data. (I use Ansi C cgi-bin program).
I see that upload/download to the server from Android is a problem. I've already spent two days. I tried many examples. I tried this example. But it does not upload/download files more than about 4k. There are couple examples here They can upload file, but I can't find a way to send file name with the file body. Sending only file data without "what it is information" looks awful.
And my second question is as follows: what is the best way to send files to the server with some text data? Preferably without extra libraries. Thanks!