The following code segment do not throw any exceptions, it just gets a SEGV :(

                try {
                        std::cout <<"Redirect URL: "
                        << curlpp::infos::RedirectUrl::get(request)
                        << std::endl;                   

                catch (...) {
                        std::cerr<<"exception??"<<std::endl;
                }

Okay, I've added the following in Infos.hpp line 55:

#if LIBCURL_VERSION_NUM >=0x071202
        //Added by Hendrik Visage 2010/06/07
        typedef curlpp::Info<CURLINFO_REDIRECT_URL, std::string> RedirectUrl;
#endif

The problem I have here is the following:

1) curlpp::infos::RedirectUrl::get() returns void... I'd like to see
that rather return CURLcode.
2) The "problem" is not the call, but the return values used when
there is no redirecturl results....

0   libSystem.B.dylib                   0x00007fff84e6c5e0 strlen + 16
1   libstdc++.6.dylib                   0x00007fff85aefa46
std::string::assign(char const*) + 30
2   libcurlpp.0.dylib                   0x0000000100080a20
curlpp::InfoTypeConverter<std::string>::get(curlpp::Easy&, CURLINFO,
std::string&) + 48 (Info.cpp:23)
3   processor                           0x0000000100005fba
curlpp::Info<(CURLINFO)1048607, std::string>::get(curlpp::Easy&) + 50
(Info.inl:39)
4   processor                           0x00000001000027a1 main + 3956 
(main.cpp:138)
5   processor                           0x0000000100001708 start + 52

This is not the first place, but I've found this type of error also in
Example04 when the cookie do not have a 6th value field... as if some
null pointer got dereferenced?

-- 
You received this message because you are subscribed to the Google Groups 
"curlpp" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/curlpp?hl=en.

Reply via email to