Lines Matching refs:hostname

584     len = strlenW( scheme ) + strlenW( request->connect->hostname ) + 4; /* '://' + nul */  in build_absolute_request_path()
590 len = sprintfW( ret, fmt, scheme, request->connect->hostname ); in build_absolute_request_path()
610 if (!strcmpiW( request->connect->hostname, request->connect->servername )) path = request->path; in build_request_string()
1402 …if (!(host = heap_alloc( (strlenW( request->connect->hostname ) + 7) * sizeof(WCHAR) ))) return NU… in build_proxy_connect_string()
1403 len = sprintfW( host, fmtW, request->connect->hostname, request->connect->hostport ); in build_proxy_connect_string()
1504 heap_free( host->hostname ); in release_host()
1655 …if (iter->port == port && !strcmpW( connect->servername, iter->hostname ) && !is_secure == !iter->… in open_connection()
1671 if ((host->hostname = strdupW( connect->servername ))) in open_connection()
1712 len = strlenW( host->hostname ) + 1; in open_connection()
1713 send_callback( &request->hdr, WINHTTP_CALLBACK_STATUS_RESOLVING_NAME, host->hostname, len ); in open_connection()
1715 if (!netconn_resolve( host->hostname, port, &connect->sockaddr, request->resolve_timeout )) in open_connection()
1757 strcmpiW( connect->hostname, connect->servername )) in open_connection()
1772 !netconn_secure_connect( netconn, connect->hostname, request->security_flags, in open_connection()
1832 return process_header( request, attr_host, connect->hostname, modifier, TRUE ); in add_host_header()
1834 len = strlenW( connect->hostname ) + 7; /* sizeof(":65335") */ in add_host_header()
1836 sprintfW( host, fmt, connect->hostname, port ); in add_host_header()
2167 …if (!strcmpiW( request->connect->hostname, request->connect->servername )) start = full_path = req… in build_wire_path()
2272 if (connect->hostname) in send_request()
2705 WCHAR *hostname = NULL, *location; in handle_redirect() local
2756 if (!(hostname = heap_alloc( (len + 1) * sizeof(WCHAR) ))) goto end; in handle_redirect()
2757 memcpy( hostname, uc.lpszHostName, len * sizeof(WCHAR) ); in handle_redirect()
2758 hostname[len] = 0; in handle_redirect()
2761 if (strcmpiW( connect->hostname, hostname ) || connect->serverport != port) in handle_redirect()
2763 heap_free( connect->hostname ); in handle_redirect()
2764 connect->hostname = hostname; in handle_redirect()
2766 if (!(ret = set_server_for_hostname( connect, hostname, port ))) goto end; in handle_redirect()
2774 else heap_free( hostname ); in handle_redirect()
3649 WCHAR *hostname, *path = NULL, *verb = NULL; in winhttp_request_Open() local
3668 if (!(hostname = heap_alloc( (uc.dwHostNameLength + 1) * sizeof(WCHAR) ))) goto error; in winhttp_request_Open()
3669 memcpy( hostname, uc.lpszHostName, uc.dwHostNameLength * sizeof(WCHAR) ); in winhttp_request_Open()
3670 hostname[uc.dwHostNameLength] = 0; in winhttp_request_Open()
3688 if (!(request->hconnect = WinHttpConnect( request->hsession, hostname, uc.nPort, 0 ))) in winhttp_request_Open()
3696 else if (!(request->hconnect = WinHttpConnect( request->hsession, hostname, uc.nPort, 0 ))) in winhttp_request_Open()
3716 heap_free( hostname ); in winhttp_request_Open()
3724 heap_free( hostname ); in winhttp_request_Open()