{"action":"created","issue":{"url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/9","repository_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking","labels_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/9/comments","events_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/9/events","html_url":"https://github.com/amitshekhariitbhu/Fast-Android-Networking/issues/9","id":167177935,"number":9,"title":"Head request","user":{"login":"amervelic","id":19406255,"avatar_url":"https://avatars.githubusercontent.com/u/19406255?v=3","gravatar_id":"","url":"https://api.github.com/users/amervelic","html_url":"https://github.com/amervelic","followers_url":"https://api.github.com/users/amervelic/followers","following_url":"https://api.github.com/users/amervelic/following{/other_user}","gists_url":"https://api.github.com/users/amervelic/gists{/gist_id}","starred_url":"https://api.github.com/users/amervelic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amervelic/subscriptions","organizations_url":"https://api.github.com/users/amervelic/orgs","repos_url":"https://api.github.com/users/amervelic/repos","events_url":"https://api.github.com/users/amervelic/events{/privacy}","received_events_url":"https://api.github.com/users/amervelic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"amitshekhariitbhu","id":9877145,"avatar_url":"https://avatars.githubusercontent.com/u/9877145?v=3","gravatar_id":"","url":"https://api.github.com/users/amitshekhariitbhu","html_url":"https://github.com/amitshekhariitbhu","followers_url":"https://api.github.com/users/amitshekhariitbhu/followers","following_url":"https://api.github.com/users/amitshekhariitbhu/following{/other_user}","gists_url":"https://api.github.com/users/amitshekhariitbhu/gists{/gist_id}","starred_url":"https://api.github.com/users/amitshekhariitbhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitshekhariitbhu/subscriptions","organizations_url":"https://api.github.com/users/amitshekhariitbhu/orgs","repos_url":"https://api.github.com/users/amitshekhariitbhu/repos","events_url":"https://api.github.com/users/amitshekhariitbhu/events{/privacy}","received_events_url":"https://api.github.com/users/amitshekhariitbhu/received_events","type":"User","site_admin":false},"assignees":[{"login":"amitshekhariitbhu","id":9877145,"avatar_url":"https://avatars.githubusercontent.com/u/9877145?v=3","gravatar_id":"","url":"https://api.github.com/users/amitshekhariitbhu","html_url":"https://github.com/amitshekhariitbhu","followers_url":"https://api.github.com/users/amitshekhariitbhu/followers","following_url":"https://api.github.com/users/amitshekhariitbhu/following{/other_user}","gists_url":"https://api.github.com/users/amitshekhariitbhu/gists{/gist_id}","starred_url":"https://api.github.com/users/amitshekhariitbhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitshekhariitbhu/subscriptions","organizations_url":"https://api.github.com/users/amitshekhariitbhu/orgs","repos_url":"https://api.github.com/users/amitshekhariitbhu/repos","events_url":"https://api.github.com/users/amitshekhariitbhu/events{/privacy}","received_events_url":"https://api.github.com/users/amitshekhariitbhu/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-07-23T10:13:45Z","updated_at":"2016-09-15T19:35:49Z","closed_at":null,"body":"I need example HEAD request. I tried this\r\n\r\n  AndroidNetworking.head (BASE_URL)\r\n                 .addQueryParameter (\"username\", username)\r\n                 .addQueryParameter (\"password\", password)\r\n                 .setPriority (Priority.MEDIUM)\r\n                 .build ()\r\n                 .getAsString (stringRequestListener);\r\n\r\nBut the response is an empty string."},"comment":{"url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/comments/247429255","html_url":"https://github.com/amitshekhariitbhu/Fast-Android-Networking/issues/9#issuecomment-247429255","issue_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/9","id":247429255,"user":{"login":"amitshekhariitbhu","id":9877145,"avatar_url":"https://avatars.githubusercontent.com/u/9877145?v=3","gravatar_id":"","url":"https://api.github.com/users/amitshekhariitbhu","html_url":"https://github.com/amitshekhariitbhu","followers_url":"https://api.github.com/users/amitshekhariitbhu/followers","following_url":"https://api.github.com/users/amitshekhariitbhu/following{/other_user}","gists_url":"https://api.github.com/users/amitshekhariitbhu/gists{/gist_id}","starred_url":"https://api.github.com/users/amitshekhariitbhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitshekhariitbhu/subscriptions","organizations_url":"https://api.github.com/users/amitshekhariitbhu/orgs","repos_url":"https://api.github.com/users/amitshekhariitbhu/repos","events_url":"https://api.github.com/users/amitshekhariitbhu/events{/privacy}","received_events_url":"https://api.github.com/users/amitshekhariitbhu/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T19:35:49Z","updated_at":"2016-09-15T19:35:49Z","body":"In version 0.1.0 there is no way to access headers from server. I have added it in version 0.2.0.\r\nVersion 0.2.0 has been released\r\n'com.amitshekhar.android:android-networking:0.2.0'\r\n\r\nThe sample code is :\r\n\r\n  ```\r\n                 AndroidNetworking.head(url)\r\n                            .build()\r\n                            .getAsOkHttpResponse(new OkHttpResponseListener() {\r\n                                @Override\r\n                                public void onResponse(Response response) {\r\n                                    Log.d(TAG, \"Headers :\" + response.headers());\r\n                                }\r\n\r\n                                @Override\r\n                                public void onError(ANError anError) {\r\n                                    //handle error\r\n                                }\r\n                            });\r\n```"}}
{"actor":{"display_login":"amitshekhariitbhu"}}