Skip to content

Poco::URIStreamOpener fails with certain URIs but libcurl succeeds. #1471

@jacobsologub

Description

@jacobsologub

Poco::URIStreamOpener fails with the following uris:

https://m.soundcloud.com/grizzlybearband/will-calls-diplo-remix
https://soundcloud.com/grizzlybearband/will-calls-diplo-remix

but succeeds using libcurl

std::string content = {};
auto& opener = Poco::URIStreamOpener::defaultOpener();

try {
    const auto is = std::shared_ptr<std::istream> { opener.open ("https://m.soundcloud.com/grizzlybearband/will-calls-diplo-remix") };
    Poco::StreamCopier::copyToString (*(is.get()), content);
}
catch (Poco::Exception& e) {
    std::cout << e.message() << std::endl;
}

The above results in a HTTP Exception/Bad Request exception but libcurl succeeds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions