Grovestreams Sting type question

I'm trying to Put to Grovestreams a copy of the exact URL that was just to post actual data to GS and GS is truncating the string after the initial "PUT"

Is the problem the spacebar character? Can I get around it?

Here's the code:

void updateGroveStreams(char channel_names[]) {
  unsigned long connectAttemptTime = millis();
  char urlBuf[300];

  char logBuf[300];

  Serial.print("updateGrovestreams called and this is the channel_names[channel]: ");
  Serial.println(channel_names);
  Serial.println();

  sprintf(urlBuf, "PUT /api/feed?compTmplId=pooltemplate&compId=Sensor1&compName=PoolData&timeEl=60000&api_key=c150f534-1aad-3fec-ace7-ffd693f413f6&%s=%s HTTP/1.1", channel_names, sensordata);

  sprintf(logBuf, "PUT /api/feed?compTmplId=pooltemplate&compId=Sensor1&compName=PoolData&timeEl=60000&api_key=c150f534-1aad-3fec-ace7-ffd693f413f6&log=%s HTTP/1.1", urlBuf);

  IPAddress ip = WiFi.localIP();
  
  client.connect(gsDomain, 80);
  client.println(urlBuf);
  Serial.println("This is what was client.println just now: ");
  Serial.println(urlBuf);
  Serial.println();
  client.print(F("Host: "));
  client.println();
  client.println(F("Connection: close"));
  client.print(F("X-Forwarded-For: "));          //Include this line and the next line if you have more than one device uploading behind
  client.println(ip);                           // your outward facing router (avoids the GS 10 second upload rule)
  client.println(F("Content-Type: application/json"));
  client.println();
  Serial.println("------------------------");

client.connect(gsDomain, 80);
Serial.println();
Serial.println("About to client.print(logBuf))");
Serial.println(logBuf);
Serial.println();
Serial.println();
client.println(logBuf);
client.print(F("Host: "));
client.println();
client.println(F("Connection: close"));
client.print(F("X-Forwarded-For: "));          //Include this line and the next line if you have more than one device uploading behind
client.println(ip);                           // your outward facing router (avoids the GS 10 second upload rule)
client.println(F("Content-Type: application/json"));
client.println();
Serial.println("------------------------");
Serial.println("Just printed logBuf");

Yes, you have to encode your data to make it a valid URL. Space is not allowed (%20)
Check out this example[\url]