void convertString(char *input) { //Loại bỏ phần "GET /" char *ptr = strstr(input, " "); if (ptr != NULL) { ptr++; strcpy(input, ptr); } //Loại bỏ "%20" & thay thế bằng dấu cách ptr = input; while (*ptr) { if (strncmp(ptr, "%20", 3) == 0) { *ptr = ' '; memmove(ptr + 1, ptr + 3, strlen(ptr + 3) + 1); } ptr++; } }