Trouble Attaching Data to Octet Stream

So I am trying to use octet stream with wifi cc3000 to send data from an image to my server from an Arduino, the post request seems to work fine and I get a response, but I cannot attach the data (or the server cannot read the data). On the server side I tried octet stream from another client and it could read the data, so I think the issue seems to be in the Arduino end. I have attached my full code, please help me figure this out, its driving me nuts. I have pasted below the code part which I think matters.

Adafruit_CC3000_Client client = cc3000.connectTCP(ip, 80);
  if (client.connected()) {
    //Adafruit_CC3000_ClientRef client = server.available();
    if (client) {
      Serial.println(F("heya"));
      client.println("POST /oct HTTP/1.1");
      client.println("Host:  epa4012.herokuapp.com");
      client.println("User-Agent: Arduino/1.0");
      client.println("Connection: close");
      client.println("Content-Type: application/octet-stream");
      client.print("Content-Length: ");
      client.println(2);
      client.println();
      client.print('a');
      client.print('b');
      /*for (int i = 0; i < 10; i++) {
        Serial.println(F("wow"));
        client.print('a');
      }*/
//        client.flush();
      /*Read data until either the connection is closed, or the idle timeout is reached. */
      unsigned long lastRead = millis();
      while (client.connected() && (millis() - lastRead < IDLE_TIMEOUT_MS)) {
        while (client.available()) {
          char c = client.read();
          Serial.print(c);
          lastRead = millis();
        }
      }
      client.close();
    }
  } else {
    Serial.println(F("Connection failed"));
    return;
  }

Please someone help me figure this out or debug it.

ortet.ino (7.19 KB)

What is /oct? Is that the full name? No .cgi or .php or something else/