From e6928c1d6c368e999ec8d1b05fccec44c2bebdbc Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 08 Mar 2008 22:31:50 +0000 Subject: updated test oauth consumer Signed-off-by: Michael Krelin --- diff --git a/test/test-oauth-consumer.cc b/test/test-oauth-consumer.cc index c5a0fc0..b3ddef5 100644 --- a/test/test-oauth-consumer.cc +++ b/test/test-oauth-consumer.cc @@ -38,15 +38,11 @@ int main(int,char**) { opkele::util::curl_pick_t curl = opkele::util::curl_t::easy_init(); opkele::oauth::http_request_t hr("POST", "http://term.ie/oauth/example/echo_api.php"); - sc.prepare_request(hr, - opkele::fields_t(),test, - opkele::oauth::oauth_auth_header,"HMAC-SHA1", - &at,"realm"); CURLcode r = curl.misc_sets(); r || (r=curl.set_write()); if(r) throw opkele::exception_curl(OPKELE_CP_ "failed to set curly options",r); - hr.setup_curl(curl); + sc.prepare_request(hr,opkele::fields_t(),test,&at).setup_curl(curl); if( (r=curl.easy_perform()) ) throw opkele::exception_curl(OPKELE_CP_ "failed to perform curly request",r); cout << "Response: " << curl.response << endl; -- cgit v0.9.0.2