Skip to content Skip to sidebar Skip to footer

Passing This Url To My Httpget Is Returning Null. Tried Every Way

I have been trying for hour every possible method on this forum but no luck. PLEASSE help I have the following server url String url = 'http://namara.io/api/v0/resources/fef59c15-

Solution 1:

Posting an answer from comments:

If you'll try to open it in browser, it says the same, so you need to authorize at first. Per docs at namara.io, you have to provide api_key.

Solution 2:

just out of curriousity : can u try

URLu=newURL(youurl);
HttpURLConnectionc= (HttpURLConnection) u.openConnection();
c.setRequestMethod("GET");
c.setDoOutput(true);

if it doesnt work , maybe you need to use a post not get method

Post a Comment for "Passing This Url To My Httpget Is Returning Null. Tried Every Way"