169c170,198 < --- > > /* checks if status code statcode is in server reply reply */ > int > check_statuscode (char * reply, char * statcode) > { > int status = 0; > char scode[4] = "201"; > int ipos = 0; > char *kpos = strchr(statcode, ','); > > while (kpos) > { > memcpy(scode, &statcode[ipos], 3); > ipos += 4; > kpos = strchr(&statcode[ipos], ','); > > if (strstr(reply, scode)) > { > status = 1; > } > } > > memcpy(scode, &statcode[ipos], 3); > if (strstr(reply, scode)) > { > status = 1; > } > return status; > } 871c913 < if (!strstr (status_line, server_expect)) { --- > if (!check_statuscode(status_line, server_expect)) { 874c916 < _("Invalid HTTP response received from host\n")); --- > _("Invalid HTTP response received from host \"%s\"\n"), status_line); 877,878c919,920 < _("Invalid HTTP response received from host on port %d\n"), < server_port); --- > _("Invalid HTTP response received from host on port %d \"%s\"\n"), > server_port, status_line);