[xwiki-users] Authentication with groovy

2009-04-22 Thread Mike A.
Hi! I want to retrieve some content from the web site (on the same domain as XWiki) using groovy. I've already got success for not protected site, but when the site requires username/password, then the script fails. So I somehow need to pass already logged in XWiki user credentials. XWiki 1.6,

Re: [xwiki-users] Authentication with groovy

2009-04-22 Thread Mike A.
Ups, here's the code: import java.util.*; import java.text.*; import java.io.*; import java.net.*; String baseURL = ; URL url = new URL(baseURL); URLConnection urlconnection = url.openConnection(); BufferedReader bufRead = new BufferedReader(new InputStreamReader(urlconnection.getInputStream()));