Problem using CC3000 and Pushingbox to post data to google

Ok so I’ve gone through and tested my google scripts and my pushing box script and they work perfectly. My code for the Arduino is not so good. I can get it to send 2 or 3 values but then despite my monitor showing me it is working, I am not seeing the code reported to my google spreadsheet, or showing up in my pushingbox.

I haven’t had much time learning how to code with the cc3000 using adafruit’s library, with that here is what I have

#include <Adafruit_CC3000.h>
#include <ccspi.h>
#include <SPI.h>
#include <string.h>
#include "utility/debug.h"
#include "DHT.h"
#include<stdlib.h>

// Define CC3000 chip pins
#define ADAFRUIT_CC3000_IRQ   3
#define ADAFRUIT_CC3000_VBAT  5
#define ADAFRUIT_CC3000_CS    10

// Create CC3000 instances
Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT, SPI_CLOCK_DIV2); // you can change this clock speed
                                
// WLAN parameters
#define WLAN_SSID       "Audubon's Disgruntled Birds"
#define WLAN_PASS       "#xvxl30p0ldxvx!"
// Security can be WLAN_SEC_UNSEC, WLAN_SEC_WEP, WLAN_SEC_WPA or WLAN_SEC_WPA2
#define WLAN_SECURITY   WLAN_SEC_WPA2

// Pushingbox parameters
#define WEBSITE  "api.pushingbox.com"


uint32_t ip;

// Variables
String data;
String tempData;
float temp;
float tempf;
float humi;
boolean connecting = false;

// DHT instances
#define DHTPIN 7 
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
  
void setup() {
// put your setup code here, to run once:
 Serial.begin(9600);

 dht.begin();
 Serial.println("\nInitializing...");
  if (!cc3000.begin())
  {
    Serial.println("Couldn't begin()! Check your wiring?");
    while(1);
  }
  delay(1000);
  Serial.println("Initialization Complete");
  Serial.println("");
}

  void loop() {
// Connect to WiFi network  
  Serial.println("Connecting, please wait");
  cc3000.connectToAP(WLAN_SSID, WLAN_PASS, WLAN_SECURITY);
  Serial.println("Connection to wifi completed");
  Serial.println("");
   
  /* Wait for DHCP to complete */
  Serial.println("Requesting DHCP");
  while (!cc3000.checkDHCP())
  {
    delay(100);
  } 
  
  // Get the website IP & print it
   ip = 0;
  Serial.print(WEBSITE); Serial.print(" -> ");
  while (ip == 0) {
    if (! cc3000.getHostByName(WEBSITE, &ip)) {
      Serial.println("Couldn't resolve!");
      return;
    }
    delay(100);
  }
  cc3000.printIPdotsRev(ip);
  Serial.println("");
  
// Get data & transform to integers and read your sensors
  temp = dht.readTemperature();  
  
//begin the loops
   getdatahum();
   Serial.println("");
   Serial.print("Connecting to Pushingbox:");

// Send request
  Adafruit_CC3000_Client client = cc3000.connectTCP(ip, 80);
  if (client.connected()) {
      sendDatahum();
      Serial.println();
      Serial.println("disconnecting.");
      Serial.print("Humidity Sent : ");
      Serial.println(temp); //print sent value to serial monitor
       
  } else {
        Serial.println("Connection failed"); 
    Serial.println(ip);
    Serial.println(tempData);
 
  tempData = "";  
  }  
  Serial.println("-------------------------------------");
  client.close();
  cc3000.disconnect();
  tempData = ""; //data reset
  data = "";
  // Wait 10 seconds until next update
  delay(10000);
}


//---------------------------------------------------------------------------------------------------------------
void getdatahum(){
  tempData+="";
  tempData+="GET /pushingbox?devid=vFA0D18B1F30BB55&tempData="; //GET request query to pushingbox API
  tempData+=temp;
  tempData+=" HTTP/1.1";
}
void sendDatahum(){
   Adafruit_CC3000_Client client = cc3000.connectTCP(ip, 80);
  Serial.println(" Connected!");
  Serial.println(tempData);
  Serial.println(ip);
  client.println(tempData);
  client.println("Host: api.pushingbox.com");
  client.println("Connection: close");
  client.println();
}

Oh here is what my serial monitor prints

Initializing... Initialization Complete

Connecting, please wait Connection to wifi completed

Requesting DHCP api.pushingbox.com -> 213.186.33.19

Connecting to Pushingbox: Connected! GET /pushingbox?devid=vFA0D18B1F30BB55&tempData=25.00 HTTP/1.1 3585745171

disconnecting.

Humidity Sent : 25.00

Connecting, please wait Connection to wifi completed

Requesting DHCP api.pushingbox.com -> 213.186.33.19

Connecting to Pushingbox: Connected! GET /pushingbox?devid=vFA0D18B1F30BB55&tempData=25.00 HTTP/1.1 3585745171

disconnecting.

Humidity Sent : 25.00

Connecting, please wait Connection to wifi completed

Requesting DHCP api.pushingbox.com -> 213.186.33.19

Connecting to Pushingbox: Connected! GET /pushingbox?devid=vFA0D18B1F30BB55&tempData=25.00 HTTP/1.1 3585745171

disconnecting.

Humidity Sent : 25.00

I’m noticing that it works at startup and it works everytime there is a DHCP problem.


Connecting, please wait
Connection to wifi completed

Requesting DHCP
api.pushingbox.com → Couldn’t resolve!
Connecting, please wait
Connection to wifi completed

Requesting DHCP
api.pushingbox.com → 213.186.33.19

Connecting to Pushingbox: Connected!
GET /pushingbox?devid=vFA0D18B1F30BB55&tempData=26.00 HTTP/1.1
3585745171

disconnecting.
Humidity Sent : 26.00