A
A
Artem2017-03-08 16:21:06
Computer networks
Artem, 2017-03-08 16:21:06

With what headers are the files transferred?

Hello! I really ask for advice: the task is to use the neoway m590 chip to transfer an image and several variables to the server. Prompt:
1. What should be the structure of the request, what headers should be in order for the server to correctly recognize them?
2. Will it be correct to send the file and variables as in a normal POST request?
Those. can I send the variables and then, immediately, the file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rou1997, 2017-03-08
@Rou1997

1. What should be the structure of the request, what headers should be in order for the server to correctly recognize them?

For analysis, use a sniffer, such as Fiddler, and create a test server yourself in PHP, etc., literally five minutes and the same number of lines of code in one file.
2. Will it be correct to send the file and variables as in a normal POST request?
Those. can I send the variables and then, immediately, the file?

If multipart form data, then yes, there can be fields such and such.

E
Eugene Chefranov, 2017-12-07
@FIKSER

.imgsoc a img {
  width: 80px;
  height: 80px;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question