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()));
String start = "";
String end = "";
String line = null;
try {
while (line = bufRead.readLine()) {
if (line != null) {
if (line.indexOf(start) != -1) {
while (line.indexOf(end) == -1) {
line = bufRead.readLine();
out.println(line);
}
}
} else break;
}
} catch(Exception e) {
e.printStackTrace();
} finally {
bufRead.close();
}
Quoting "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, configured LDAP authentication for AD.
Here's the script:
Best regards, Mike
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Best regards, Mike
Links:
------
[1] mailto:_muxa@inbox.lv