Fix so the Host: header in wxHTTP really works. With virtual hosts it

is vital that the original host name given in the URL is used in the
Host: header so the sever will use the right vhost config.  Previously
it was using the value returned from gethostbyaddr which will often
not be the same as the hostname in the URL.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-02-21 00:01:32 +00:00
parent c79a329dcb
commit ce22d615fe
3 changed files with 21 additions and 5 deletions

View File

@@ -64,10 +64,14 @@ public:
bool AnyAddress();
wxString Hostname();
wxString OrigHostname() { return m_origHostname; }
unsigned short Service();
virtual int Type() { return wxSockAddress::IPV4; }
virtual wxSockAddress *Clone() const { return new wxIPV4address(*this); }
virtual wxSockAddress *Clone() const;
private:
wxString m_origHostname;
};
#ifdef ENABLE_IPV6