Files
2012-02-21 01:15:00 -05:00

1 line
6.5 KiB
JSON

[{"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315057632.159965, "message": "that looks like something I would call a double-bug", "group_id": 236, "id": 2036639}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315057346.3573661, "message": "I thought the credentials would be passed inside headers", "group_id": 236, "id": 2036609}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315057408.7755649, "message": "but when I look at the console log after making a htt:get request with KRL I see :", "group_id": 236, "id": 2036614}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315056901.7648361, "message": "I have problems authenticating against couchdb with \"Basic authentication\"", "group_id": 236, "id": 2036563}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315057193.9327829, "message": "http://en.wikipedia.org/wiki/Basic_access_authentication", "group_id": 236, "id": 2036595}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315056820.2555261, "message": "now that http:post and http:put are working as functions I started working on my KRL couchdb module again.", "group_id": 236, "id": 2036557}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315057301.356391, "message": "when I read this doc: http://docs.kynetx.com/docs/HTTP#get", "group_id": 236, "id": 2036607}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315057709.56427, "message": "1: the authentification data is passed in the url ( should be inside headers)", "group_id": 236, "id": 2036647}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315057446.0630779, "message": "'_uri' => bless( do{\\(my $o = 'http://someserver:5984/somedb/db7cee9ecac361195aff98fbba006f7b?credentials=HASH%280x10bb6b04%29')}, 'URI::http' ),", "group_id": 236, "id": 2036620}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315057862.8193281, "message": "2: the authentification data is translated into a wrong string representation ( HASH(0x10bb6b04) )", "group_id": 236, "id": 2036666}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315058147.173768, "message": "Also I don't know which authentification type the http KRL library is using , I supose it is \"Basic\" not Digest", "group_id": 236, "id": 2036709}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315258597.084322, "message": "It seems all the options passed to htt:get ( function ) get added to the url", "group_id": 236, "id": 2053492}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315258602.1559119, "message": "ex: r2 = http:get(\"http://apps.kynetx.com/apps\",\n {\n \"headers\" : {'cookie':ksessid}\n }", "group_id": 236, "id": 2053493}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315258675.872165, "message": "becomes", "group_id": 236, "id": 2053501}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315258687.124352, "message": "/ 2011/09/05 21:24:15 DEBUG HTTP.pm a1135x131 first_rule Method is get & URI is http://apps.kynetx.com/apps\n// 2011/09/05 21:24:15 DEBUG HTTP.pm a1135x131 first_rule Request bless( {\n// '_content' => '',\n// '_uri' => bless( do{\\(my $o = 'http://apps.kynetx.com/apps?headers=HASH%280xb7e0c818%29')}, 'URI::http' ),\n// '_headers' => bless( {\n// 'cookie' => ''\n// }, 'HTTP::Headers' ),\n// '_method' => 'GET'\n//}, 'HTTP::Request' )", "group_id": 236, "id": 2053502}, {"user_id": 763, "stars": [], "topic_id": 44846, "date_created": 1315433564.5279939, "message": "credentials should not be passed as a header, unless specifically prepared to do so. Instead, pass them in the \"credentials\" hash, as show in docs: http://docs.kynetx.com/docs/Http#get", "group_id": 236, "id": 2070589}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315604165.128232, "message": "I still think there is a bug in http:get though", "group_id": 236, "id": 2087530}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315604223.8012719, "message": "will result in a call to :http://httpbin.org/get?headers=HASH%280xb7f19104%29&response_headers=ARRAY%280xbbbf6d4%29&credentials=HASH%280xbbbf86c%29", "group_id": 236, "id": 2087536}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315604289.7931099, "message": "r = http:get(\"http://httpbin.org/get\",\n {\n \"credentials\" : {\n \"netloc\" : \"httpbin.org:80\",\n \"realm\" : \"Fake Realm\",\n \"username\" : \"qwerty\", \n \"password\" : \"vorpal\" \n },\n \"params\" : {},\n \"headers\" : {\"Accept\" : \"text/plain\"},\n \"response_headers\" : [\"Connection\",\"Accept\"]\t \t\n });", "group_id": 236, "id": 2087539}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315603785.495156, "message": "couchdb won't like that way of authenticating", "group_id": 236, "id": 2087486}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315604151.119714, "message": "http://username:password@server", "group_id": 236, "id": 2087529}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315604132.7247829, "message": "I found a workaround, couchdb will accept passing the credentials straight into the url", "group_id": 236, "id": 2087526}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315604388.702559, "message": "will work ( calls http://httpbin.org/get?)", "group_id": 236, "id": 2087545}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315604444.224596, "message": "so for now it is necessary to always pass at least an empty \"params\" object", "group_id": 236, "id": 2087550}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315604179.8563001, "message": "r = http:get(\"http://httpbin.org/get\",\n {\n \"credentials\" : {\n \"netloc\" : \"httpbin.org:80\",\n \"realm\" : \"Fake Realm\",\n \"username\" : \"qwerty\", \n \"password\" : \"vorpal\" \n },\n \"headers\" : {\"Accept\" : \"text/plain\"},\n \"response_headers\" : [\"Connection\",\"Accept\"]\t \t\n });", "group_id": 236, "id": 2087531}, {"user_id": 30494, "stars": [], "topic_id": 44846, "date_created": 1315604459.827924, "message": "so for now it is necessary to always pass at least an empty \"params\" object", "group_id": 236, "id": 2087553}]