diff options
author | George Hazan <ghazan@miranda.im> | 2019-08-26 14:57:51 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-08-26 14:57:51 +0300 |
commit | 93a09024ab433c866e87c5a6e33f982d7e8e32ab (patch) | |
tree | 13f86c292e2f4a628834a55466e27993ca99864a /include | |
parent | cb2efce1a4fe9c89c5fef63b3aca63f3e63983fc (diff) |
unified fake User-Agent field generation for all http-related protocols
Diffstat (limited to 'include')
-rw-r--r-- | include/m_netlib.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -374,6 +374,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
// IPv6 will be supplied in formats [address]:port or [address]
|