75: sd = so_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
76: DEBUG_PRINT(("http_get: so_socket = %d(%d, %d)\n", sd, MERCD(sd), SERCD(sd)));
77: if ( sd < 0 ) {
86: re = so_connect(sd, (struct sockaddr*)&sa, sizeof sa);
87: DEBUG_PRINT(("http_get: so_connect = %d(%d, %d)\n", re, MERCD(re), SERCD(re)));
88: if ( re < 0 ) {
93: re = so_write(sd, req, strlen(req));
94: DEBUG_PRINT(("http_get: so_write = %d(%d, %d)\n", re, MERCD(re), SERCD(re)));
95:
97: re = so_read(sd, &buf[offset], buflen - offset);
98: DEBUG_PRINT(("http_get: so_read = %d(%d, %d)\n", re, MERCD(re), SERCD(re)));
99: if ( re == 0 ) {