because Arduino is not possible as client.
Yes, it is, when you understand what a client is and what a client talks to (a server, not another client).
//if HTTP request has ended
if (c == '\n') {
///////////////
Serial.println(readString); //print to serial monitor for debuging
client.println("HTTP/1.1 200 OK"); //send new page
client.println("Content-Type: text/html");
client.println();
Regardless of what the client asked for, give it what YOU think it needs. Wrong!!!
client.println("<a href="/?altitude"">ALTITUDE");
client.println("<a href="/?alt_stop"">STOP");
Why do you have two buttons named b? Do you have two brothers named Darryl, Darryl?
client.println("<button name=b value=1 type=submit style=height:80px;width:150px><a href=\"/?azimuth\"\">AZIMUTH</a></button>");
client.println("<button name=b value=1 type=submit style=height:80px;width:150px><a href=\"/?zm\"\">STOP</a></button>");
Oh, wait, make that 4 buttons named b.
if(readString.indexOf("altitude") >0){
for (int i = 0 ; i <=180; i=i+10){
altitude.write(i);
delay (1000);
}
Assuming that the client did include "altitude" in the request, this block will take 18 seconds to move the servo from 0 to 180 degrees. I fail to see how this is a relevant thing to do.
I would expect your server to have 4 buttons, named right, left, up, and down. Each request containing "right" would cause the position of one servo to be incremented by 1. Each request containing "left"would cause the position of one servo to be decremented by 1.
Each request containing "up" would cause the position of the other servo to be incremented by 1. Each request containing "down"would cause the position of that servo to be decremented by 1.
There would be no stop buttons on my page.
There might be fields where the step size could be entered. The GET request would then contain "button=right&amount=n", and you'd need to parse the statement to get the direction and the amount.
Alternatively, there might be 2 or three buttons for each direction (something like right one degree, right 5 degrees, right 20 degrees, etc.).
The second question is, I want to insert html code from webcam software, named "webcam xp". It is for streaming.
Can I insert this code in one table on arduino web server?
You can have the Arduino serve up a page that contains a placeholder for the camera image, and a source tag that says "go get the data to display here from somewhere else". You can NOT expect the Arduino to serve up the image data.