[oXygen-user] HttpUrlConnection and HTTP method in a Saxon extension

Florent Georges
Sat Jan 3 16:38:53 CST 2009


  Best wishes to the oXygen team and users.

  I have a Saxon extension in Java, that opens an HTTP connection from
a URL and set the HTTP method on it to POST:

    URL url  = ...;
    HttpURLConnection conn = (HttpURLConnection) url.openConnection();

  Unfortunately, the method is always GET, and there is no exception
raised in that code.  I must admit it took a while to find the cause.
The code works well outside oXygen, and the object 'conn' is actually
of type ro.sync.net.protocol.http.WebdavHttpURLConnection when the
transform is launched from within oXygen.

  Is it because of a bug in this class?  Is there any way to work
around this one?  Outside of oXygen, in a standalone Sun JVM, the
class is sun.net.www.protocol.http.HttpURLConnection, for what is
worth noting...

  Un an nou fericit!

Florent Georges


More information about the oXygen-user mailing list