Is there a particular reason you are using 1.0.4, since 1.0.7 is current
(and I can't think of too many reasons to resist upgrading)?

This works for me right now.  I'm using trunk, but I know of nothing in the
1.0.7 tag that would make it work any differently.

import org.restlet.Client;
import org.restlet.data.Form;
import org.restlet.data.Method;
import org.restlet.data.Protocol;
import org.restlet.data.Request;
import org.restlet.data.Response;

public class NonStandardHeader {
    public static void main(String[] args){
        Request request = new Request(Method.GET, "http://www.flickr.com";);

        Client client = new Client(Protocol.HTTP);
        Response response = client.handle(request);

        Form headers = (Form) response.getAttributes().get("
org.restlet.http.headers");
        System.out.println("Flickr's X-XRDS-Location header is
"+headers.getFirstValue("X-XRDS-Location"));
    }
}

---

this prints:

Flickr's X-XRDS-Location header is
http://open.login.yahooapis.com/openid20/www.flickr.com/xrds

Reply via email to