Fill a form with Ethernet Shield

I’ve a problem.
I want to fill automatically a form for keeping alive my internet connection (i live in a student room)

You can find the auth page attached

I try to send the “auth_user” and “auth_pass” with a post, but it doesn’t work

Any ideas ?

Code :

Serial.println("connected");
    // Make a HTTP request:
    client.println("POST / HTTP/1.1");
    client.println("Host: etu5clous.univ-angers.fr:8001");
    client.println("Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp;q=0.8");
    client.println("Accept-Encoding: gzip,deflate,sdch");
    client.println("Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4");
    client.println("Content-Type: application/x-www-form-urlencoded");   
    client.println("Cookie: __utma=199844970.1638979587.1380054394.1381091623.1381426669.4; __utmz=199844970.1381426669.4.4.utmcsr=bing|utmccn=(organic)|utmcmd=organic|utmctr=suaps%20unbiversit%C3%A9%20angers");   
    client.println("Origin: https://etu5clous.univ-angers.fr:8001");   
    client.println("Referer: https://etu5clous.univ-angers.fr:8001/index.php?redirurl=http%3A%2F%2Fwww.google.fr%2F"); 
    client.println("Connection: close");  
    client.println();
    client.print("auth_user=\"aaaaaa@univ-angers.fr\"&auth_pass=\"bbbbbb\"");
    client.println();

form.rar (11.1 KB)

With a POST request, you must send a "Content-Length:" parameter in the header. I usually send it just before "Connection: close". That is the length of this string: auth_user=myuser@univ-angers.fr&auth_pass=xxxxxx

If you send double quotes, they should be url encoded. That is %22

I tried with Content-Lengh and also with %22 and nothing work :~

String PostData="auth_user=%22floligneul@laposte.net%22&auth_pass=%22squall49%22&redirurl=%22www.google.fr%22";

  if (client.connect(server, 80)) {
    Serial.println("connected test");
    // Make a HTTP request:
    client.println("POST / HTTP/1.1");
    client.println("Connection: close");
    client.println("Content-Type: application/x-www-form-urlencoded;");
    client.print("Content-Length: ");
    client.println(PostData.length());
    client.println();
    client.println(PostData);
    client.println();
  }

What do you mean "doesn't work"? Doesn't connect? Doesn't get the page? Doesn't save the data?