I program with java to use yql api
I use oauth token to request yql api after get access token of yahoo.
I use httpclient to send request(post method) to yql url: "http://query.yahooapis.com/v1/yql", and set request header like this:
OAuth realm="query.yahooapis.com",oauth_signature="83SzG7zGaS8cgyB7NKR85RlI0FE=",oauth_nonce="JsZdswywH",oauth_version="1.0",oauth_signature_method="HMAC-SHA1",oauth_consumer_key="dj0yJmk9cElGeTJSaWZ3Z1RoJmQ9WVdrOVJFczJaRTA0TkdzbWNHbzlNekE1TkRZNU1UZzImcz1
jb25zdW1lcnNlY3JldCZ4PWUz",oauth_token="A%3DklkGOi3fmVtH8ACsODzUuDRpT0aDLloB99hXVS0Xo4z4jsa8Esl4HWrnqmRIJF89PRd1JADqCpptfz
1vM7yzT1Dm7bjHRvGchXqZFR64WrjRQd6jRQwcFTO4b56omJKrm3ZOZ5_IGQiaWWl20.GLyOdcAB8t4N
D
KyDku64l.OYFVir1VbhyNW8N1dETpQJDSXj1P0aOAc9i0iamat3GKNkC8Lz5H2GISg0KGCXSU0h79I28
X
6OmQP..HHw1GOKBomrEidydMBKzSDFNbemBIN7F4gY5dAobx91oSEJ1j6Vy_K0.fcXjeWpKCC2tHFGzy
K
no8CXJ5_Z5CnqyuGRtO7rpCzEJpWU7sVZS6UUd.6t5gVF7XxZG5tmrWm.Gtd1B_LRWHj0YKM3Kh7kZ4I
u
t1cC8yPCYxN2O6bYB5eTtqNG.zMMctm6BqUvA29dZVSP2im9UKWPEMVpfIQFZiUE6kd9VgS9MmjozFuu
t
Ap_N94SFYtm5F60f33QMdvLNW8j2XaHpS0AIczaU3Nhk_UPuCv2EvzkLKWLQuuYZWqTBbXUoCSRbXOB_
J
ERPPR7OwGPXZiHHnFlkf_Vl0i16Of74V3hhGZWQw67BTGBEV5RBZRbLV980fn45pWUxYfy.DxG9iac_6
A
PBsz4jGjJm95gTAb9Fxgw--"
and set yql :show tables&format=xml
run it ,and i get exception like this :
I/O exception (org.apache.commons.httpclient.NoHttpResponseException) caught when processing request: The server query.yahooapis.com failed to respond
org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
anyone could help me ? what is wrong ?