Search found 9 matches

Go to advanced search

by callcc
26 Apr 2011, 10:49
Forum: Support
Topic: HTTP Streams
Replies: 3
Views: 1134

Re: HTTP Streams

You can read from the stream returned by HTTPClientSession::receiveResponse(). I think the simplest way to do this is to use URIStreamOpener: Poco::Net::HTTPStreamFactory::registerFactory(); std::istream* stream = Poco::URIStreamOpener::defaultOpener().open("http://services.digg.com/2.0/stream&...
by callcc
05 Apr 2011, 09:10
Forum: Contributors
Topic: Digest HTTP authentication
Replies: 2
Views: 2691

Digest HTTP authentication

Hi, POCO maintainers and users. Here is my attempt to implement HTTP digest authentication for POCO. It is not ready to be included in the main source tree (only client side, some parts potentially useful for server side are private now, etc), but it is ready to be tested and improved. If you ever n...
by callcc
01 Apr 2011, 08:20
Forum: Support
Topic: http request and redirect
Replies: 2
Views: 1130

Re: http request and redirect

When using poco networking classes to make a http request, how can I handle a http redirect (301) in such a way I directly follow the redirect? (CURL has a nice feature which does this automatically and wondering how poco handles this). If you just need to download something, you could use HTTPStre...
by callcc
29 Jan 2011, 14:34
Forum: Contributors
Topic: Net::MediaType, “*/subtype” and “*/*” matching
Replies: 1
Views: 1869

Net::MediaType, “*/subtype” and “*/*” matching

Using it in HTTP server (handling client's “Accept” header). Index: Net/include/Poco/Net/MediaType.h =================================================================== --- Net/include/Poco/Net/MediaType.h (revision 1403) +++ Net/include/Poco/Net/MediaType.h (working copy) @@ -124,3 +124,11 @@ bool ...
by callcc
29 Jan 2011, 13:51
Forum: Contributors
Topic: Add RTSP to the list of well known ports in URI
Replies: 1
Views: 1599

Add RTSP to the list of well known ports in URI

Index: Foundation/src/URI.cpp =================================================================== --- Foundation/src/URI.cpp (revision 1443) +++ Foundation/src/URI.cpp (working copy) @@ -647,6 +647,8 @@ return 389; else if (_scheme == "https") return 443; + else if (_scheme == "rtsp&...
by callcc
06 Sep 2010, 09:59
Forum: Contributors
Topic: HTTPStreamFactory and authentication
Replies: 0
Views: 1422

HTTPStreamFactory and authentication

It seems OK to try to authenticate if user provides the authentication information in URI. The following patch (with the spaces messed up by the CODE) adds authentication (only Basic scheme) handling to the 'open' method of HTTPStreamFactory: Index: Net/include/Poco/Net/HTTPStreamFactory.h =========...
by callcc
02 Sep 2010, 15:44
Forum: Support
Topic: HTTPStreamFactory and authentication
Replies: 0
Views: 561

HTTPStreamFactory and authentication

Why HTTPStreamFactory::open doesn't handle authentication using the user info from the URI? Is there some issue with that?
by callcc
02 Jul 2010, 15:29
Forum: Support
Topic: Porting to OpenBSD?
Replies: 1
Views: 674

Re: Porting to OpenBSD?

pkgsrc's «work in progress» has POCO port: http://pkgsrc-wip.sourceforge.net/ . NetBSD and OpenBSD are very similar, so I think it could be built successfully on OpenBSD. As for the native port, I have a draft made from the pkgsrc's one, but I have no time to test and package it properly, and it's n...
by callcc
12 Apr 2010, 14:18
Forum: Support
Topic: HTTP Digest Authentication
Replies: 8
Views: 1916

HTTP Digest Authentication

Hello. I'm starting a new project (a special purpose HTTP server) and Poco is exactly what I need. The only thing is missing is HTTP digest authentication, which is essential. As this blog entry http://pocoproject.org/blog/?p=322 suggests the auth. mechanism is implemented in 1.3.7 branch (is it tru...

Go to advanced search

cron