From 93a09024ab433c866e87c5a6e33f982d7e8e32ab Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Aug 2019 14:57:51 +0300 Subject: unified fake User-Agent field generation for all http-related protocols --- include/m_netlib.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/m_netlib.h b/include/m_netlib.h index 5225186f85..21b6389c5a 100644 --- a/include/m_netlib.h +++ b/include/m_netlib.h @@ -373,6 +373,11 @@ EXTERN_C MIR_APP_DLL(UINT_PTR) Netlib_GetSocket(HNETLIBCONN hConnection); EXTERN_C MIR_APP_DLL(HNETLIBUSER) Netlib_GetConnNlu(HNETLIBCONN hConn); +///////////////////////////////////////////////////////////////////////////////////////// +// Gets the fake User-Agent header field to make some sites happy + +EXTERN_C MIR_APP_DLL(char*) Netlib_GetUserAgent(); + ///////////////////////////////////////////////////////////////////////////////////////// // Converts numerical representation of IP in SOCKADDR_INET into string representation with IP and port // IPv4 will be supplied in formats address:port or address -- cgit v1.2.3