Hi,
This may not be your issue. But I am trying to get the some data from a forwarding page. I need to get to the HttpRequest object to get to some header information. What object or what do I need to do on my EntryPoint to get this information.
Thanks,
I found this snippet of code. Should it retain the sender header information?
public class GetExample implements EntryPoint {
public static final int STATUS_CODE_OK = 200;
public static void doGet(String url) {
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url);
try {
Request response = builder.sendRequest(null, new RequestCallback() {
public void onError(Request request, Throwable exception) {
// Code omitted for clarity
}
public void onResponseReceived(Request request, Response response) {
// Code omitted for clarity
}
});
} catch (RequestException e) {
// Code omitted for clarity
}
}
public void onModuleLoad() {
doGet("/");
}
}
This may not be your issue. But I am trying to get the some data from a forwarding page. I need to get to the HttpRequest object to get to some header information. What object or what do I need to do on my EntryPoint to get this information.
Thanks,
I found this snippet of code. Should it retain the sender header information?
public class GetExample implements EntryPoint {
public static final int STATUS_CODE_OK = 200;
public static void doGet(String url) {
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url);
try {
Request response = builder.sendRequest(null, new RequestCallback() {
public void onError(Request request, Throwable exception) {
// Code omitted for clarity
}
public void onResponseReceived(Request request, Response response) {
// Code omitted for clarity
}
});
} catch (RequestException e) {
// Code omitted for clarity
}
}
public void onModuleLoad() {
doGet("/");
}
}
Comment