私はポコに奇妙な問題を抱えています。問題なくビルドでき、テスト アプリケーションにリンクできます。ただし、URL をダウンロードすると、どの URL を使用しても HostNotFound 例外が報告されます。このファイルはどこからでもシークレットブラウザでアクセスでき、DNSで解決できます....これをトラブルシューティングするのに少し困っています...何かアイデアはありますか?
// エラー nslookup を示すマシンの dns s3.amazonaws.com Server: UnKnown Address: 192.168.0.1
正式でない回答: 名前: s3-1.amazonaws.com 住所: 72.21.215.196 エイリアス: s3.amazonaws.com s3.a-geo.amazonaws.com
    // calling helper
CString host("http://s3.amazonaws.com");
CString path("/mybucket.mycompany.com/myfile.txt");
CString errmsg;
CString data = GetURL(host,path,errmsg);
    // poco helper code
 CString  GetURL(CString host, CString path_query, CString &debmsg)
{
    debmsg = CString("");
    try 
    {
        // convert request
        std::string tmphost((LPCTSTR)host);
        std::string tmppath((LPCTSTR)path_query);
        // creation session and request
        HTTPClientSession session(tmphost,80);
        // disable proxy
        session.setProxyHost("");
        HTTPRequest req(HTTPRequest::HTTP_GET,tmppath,HTTPMessage::HTTP_1_1);
        // send request
        session.sendRequest(req);
        // get response
        HTTPResponse res;
        std::istream * response = &session.receiveResponse(res);
        // convert it back to mfc string
        streambuf *pbuf = response->rdbuf();
        std::ostringstream ss;
        ss << pbuf;
        CString data(ss.str().c_str());
        return data;
    }
    catch (Poco::Exception& ex)
    {
        CString err(ex.displayText().c_str());
        debmsg.Format("error getting url: %s%s err: %s",host,path_query,err);
    }
    return CString("<error>");
}