Hi,

I have problem with AbderaClient 0.4.0 on Single Sign ON environment.
In Single Sign ON environment, I am always getting an Unauthorized Error.


Here is my code snippet
--------------------------------------

            Abdera abdera = new Abdera();
            AbderaClient client = new AbderaClient(abdera);

            for (int i = 0; i < cookies.length; i++) {
                client.addCookie(host, cookies[i].getName(), 
cookies[i].getValue());
            }

            post_uri = "http" + "://" + host + post_uri;
           
            resp = client.post(post_uri, entry);
            switch(resp.getType()) {
              case SUCCESS:
                System.out.println("New entry created at: " + 
resp.getLocation().toASCIIString());
                break;
              default:
                System.out.println("Error: " + resp.getStatusText());
            }


where

cookies array, which I got it from external server and it has JSESSIONID, 
LtpaToken2, and LtpaToken.

could you please provide me the solution for my issue?

Regards
Rajan




      

Reply via email to