- IoTString *reqstring = isput ? "req=putslot" : "req=getslot";
- IoTString *urlstr = baseurl + "?" + reqstring + "&seq=" + sequencenumber;
+ const char *reqstring = isput ? "req=putslot" : "req=getslot";
+ char * buffer = (char *) malloc(baseurl->length() + 200);
+ memcpy(buffer, baseurl->internalBytes(), baseurl->length());
+ int offset = baseurl->length();
+ offset+=sprintf(&buffer[offset], "?%s&seq=%" PRId64, reqstring, sequencenumber);