I'm trying to use the blend4j to access the Galaxy API, but I'm getting a 403 error, however when I pass the same request string through my browser I get a json response (Status 200).
//Here is the URL string being passed in both cases:
//Below are the Galaxy logs emitted on my localhost:
127.0.0.1 - - [07/Mar/2013:21:12:01 -0400] "GET /api/histories?key=c5954f0e726e52da297cdad5ad4aa249 HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.155 Safari/537.22"
127.0.0.1 - - [07/Mar/2013:21:12:24 -0400] "GET /api/histories?key=c5954f0e726e52da297cdad5ad4aa249 HTTP/1.1" 403 - "-" "Java/1.6.0_41"
I'm not sure if this is related or not, because I can logout in my browser and still hit the local server without getting a 403, but how do I login (and logout) through the API to set up a session because I assume that the API key is only valid for the logged in user? Is there an API request for the login?
Cheers,
Rob