-rw-r--r-- | test/test-oauth-consumer.cc | 6 |
1 files changed, 1 insertions, 5 deletions
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**) { | |||
38 | opkele::util::curl_pick_t curl = opkele::util::curl_t::easy_init(); | 38 | opkele::util::curl_pick_t curl = opkele::util::curl_t::easy_init(); |
39 | opkele::oauth::http_request_t hr("POST", | 39 | opkele::oauth::http_request_t hr("POST", |
40 | "http://term.ie/oauth/example/echo_api.php"); | 40 | "http://term.ie/oauth/example/echo_api.php"); |
41 | sc.prepare_request(hr, | ||
42 | opkele::fields_t(),test, | ||
43 | opkele::oauth::oauth_auth_header,"HMAC-SHA1", | ||
44 | &at,"realm"); | ||
45 | CURLcode r = curl.misc_sets(); | 41 | CURLcode r = curl.misc_sets(); |
46 | r || (r=curl.set_write()); | 42 | r || (r=curl.set_write()); |
47 | if(r) | 43 | if(r) |
48 | throw opkele::exception_curl(OPKELE_CP_ "failed to set curly options",r); | 44 | throw opkele::exception_curl(OPKELE_CP_ "failed to set curly options",r); |
49 | hr.setup_curl(curl); | 45 | sc.prepare_request(hr,opkele::fields_t(),test,&at).setup_curl(curl); |
50 | if( (r=curl.easy_perform()) ) | 46 | if( (r=curl.easy_perform()) ) |
51 | throw opkele::exception_curl(OPKELE_CP_ "failed to perform curly request",r); | 47 | throw opkele::exception_curl(OPKELE_CP_ "failed to perform curly request",r); |
52 | cout << "Response: " << curl.response << endl; | 48 | cout << "Response: " << curl.response << endl; |