ESP8266 + request

Hello, i am working on a project which i want to send data from esp8266 to my android app.

I've created comunication with ONE request/send to switch on/off items.

The question is can i create the SECOND to request/send data? And what should i do?

in other words i wanna make multirequest

(Android)
HttpClient httpclient = new DefaultHttpClient();
URI website = new URI("http://"+ipAddress+":"+portNumber+"/?"+parameterName+"="+parameterValue+"/?"+parameterName2+"="+parameterValue2);
HttpGet getRequest = new HttpGet();
getRequest.setURI(website);
HttpResponse response = httpclient.execute(getRequest);

(Arduino+ESP)
String httpHeader;
httpHeader = "HTTP/1.1 200 OK\r\nContent-Type: text/html; charset=UTF-8\r\n";
httpHeader += "Content-Length: ";
httpHeader += content.length();
httpHeader += "\r\n";
httpHeader += "Connection: close\r\n\r\n";
httpHeader += content;

I dont know exactly how arduino know this request form android belong to this send data

Is it sth connected with (IPD · espressif/ESP8266_AT Wiki · GitHub) ??

Look at the data that the Arduino receives. It contains an HTTP "GET" request. The contents of the GET request tells the Arduino what data is being requested. It's all spelled out in the HTTP protocol specification.

See: HTTP/1.1: Method Definitions

So i have to add all data to one request ? And it's not possible to make a few various request ?

I've tried to create various request but when i try to check it by if (esp8266.find("val=")){...} it's not working how it should ;/ moreover if is very expensive function in arduino i think ?

So i have to add all data to one request ?

No.

And it's not possible to make a few various request ?

Of course it is.

What time is it?
What date is it?
What operating system are you running?
How old are you?

See? Lots of requests...

but when i try to check it by if (esp8266.find("val=")){...} it's not working how it should ;/ moreover if is very expensive function in arduino i think ?

Of course that's a poor way of doing it. Read and store the whole GET request. Then, parse it.

What do you mean by this?

PaulS:
Read and store the whole GET request. Then, parse it.

What do you mean by this?

Just what I said. There are several sites that deal with reading serial data. One is:

Reading client data is done EXACTLY the same way.

Once you have read, and stored, all the data, THEN you can make use of what the client requested.

Go back and look at the questions I posed earlier. Suppose that you have structured your code to generate responses, expecting the questions in that order. You have your code looking for "date" as the trigger for providing a response. If I ask the 4th question first, your code won't answer the first three questions, when I ask them after I ask how "old" you are.

If you read and store the whole question, you can look for "date" in the question, and "time" and "system" and "old" and provide the right response, regardless of the order that I ask the questions in. If you look for "date" in the stream of questions, and I ask for the date last, I will get no answers for the other three questions.