Hello, everybody!
Please, look at this picture! You see IE and HttpWatch Basic plugin loading yahoo.com. You see a range of any http responses. But the most important is the list of loaded images. Some of them are loaded during JavaScript scripts executing, some of them are loaded during AJAX works. The URI's of this images are not accessible from HTML code.
Unfortunately java.net package don't let us to get all this headers and URI's of images using standard tools. If You try it
import java.net.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws MalformedURLException, IOException {
try {
URL url = new URL("http://www.yahoo.com");
URLConnection conn = url.openConnection();
for (int i=0; ; i++) {
String headerName = conn.getHeaderFieldKey(i);
String headerValue = conn.getHeaderField(i);
System.out.println(headerName+"...................."+headerValue);
if (headerName == null && headerValue == null) { break; }
}
} catch (Exception e) { }
}
}
You'll see it! And now the question: does anyone knows any tools or library or ways for getting all headers like HttpWatch Basic plugin ? Thanks!