Pushingbox: Seeking help to create the url

Hello

I just don’t get it with the process to create the URL and send it to the net. Did read many post, but they nearly all use the same code.

I did create a scenario and the test succeed. I got the Device ID and the Google sheet attached to it.

Arduino do connect, but the URL is not OK

I did modify an exemple found on this forum, but no luck yet

Note: I hided the Pushingbox ID. If necessary, i will sent it privately.

Note2: I’m still green with Arduino and greener with http protocol.

My interrogations:
How is composed the Puschingbox URL
How to construct the url string using the provided value ( variable)

Any help appreciated
All the best to this group for the new year

Martin

#include <SPI.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
#include <SPI.h>
 

#undef int
#undef abs
#undef double
#undef float
#undef round


char devid = "vxxxxxxxxxxxxx5";  // THIS IS THE DEVICE ID FROM PUSHINGBOX

int del=300;  // Amount of seconds delay between posting to google docs.



long saveur1 = 11;
long saveur2 = 22;
long saveur3 = 33;
long saveur4 = 44;
long  saveur5 = -55;
int date = 20191212;
int heure = 1212;

char postmsg[100];
int k=0;
int temp_ = 0;

byte mac[] =  { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };   // Be sure this address is unique in your network
// Set the static IP address to use if the DHCP fails to assign

IPAddress ip(192, 168, 0, 177);
IPAddress myDns(192, 168, 0, 1);

char DEVID[]= "vxxxxxxxxxxx5";
char serverName[] = "api.pushingbox.com"; 
EthernetClient client;
 
 
void setup()
{
  Serial.begin(9600);
  Ethernet.begin(mac, ip);
  delay(1000);
  Serial.println("connecting...");
}
 
void loop(){
  
   Serial.println(client);
    
    int temp_ = 2.3;
  
 // Post to Google Form.............................................

  if (client.connect(serverName, 80)) 
  {
    Serial.println("step2");
    k=0;
    Serial.println("connected");

    sprintf(postmsg,"GET /pushingbox?DEVID=%c&status=%d HTTP/1.1",date,heure, temp_,saveur1,saveur2,saveur3,saveur4,saveur5);  // NOTE** In this line of code you can see where the temperature value is inserted into the wed address. It follows 'status=' Change that value to whatever you want to post.

    client.println(postmsg);
    client.println("Host: api.pushingbox.com");
    client.println("Connection: close");
    client.println();

    Serial.println(postmsg);
    Serial.println("Host: api.pushingbox.com");
    Serial.println("Connection: close");
    Serial.println();
 
     delay(1000);
     client.stop();
  }
  delay(1000);
  
  if (!client.connected()) 
  {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();
    k==1;
    return;
  }
  
 
}

I see an sprintf(...) function with two percent signs but seven parameters. That doesn't seem right.

I see k==1 which means compare k to one and throw away the result. That doesn't seem right either.

There may be other issues as well.