On Mon, Mar 1, 2010 at 15:15, Nithya Vembu <nithu...@gmail.com> wrote:
>
> Hi All,
>
>   I just want to know is it possible to login in xwiki application through
> httpclient. Now through xmlrpc and rest api we can. But for some purpose i
> need to login through httpclient. If possible, any one can tell the url
> along with the parameters needed to login.

See 
http://svn.xwiki.org/svnroot/xwiki/enterprise/trunk/distribution-test/webstandards-tests/src/test/it/com/xpn/xwiki/it/XHTMLValidationTest.java

And the method #testDocumentValidity

the important part is

method.setDoAuthentication(true);
method.setFollowRedirects(true);
method.addRequestHeader("Authorization", "Basic " + new
String(Base64.encodeBase64("Admin:admin".getBytes())));


>
>  Thanks in advance.
>
> Regards,
> Nithya.
> --
> View this message in context: 
> http://n2.nabble.com/Login-in-xwiki-through-http-client-tp4654361p4654361.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to