PDA

View Full Version : Apache (resin alternates?)


retro_hood
03-20-2010, 08:40 PM
Hey guys, I have borrowed the following code from

import java.io.*;
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.*;


HttpClient client = new HttpClient();
GetMethod method = new GetMethod(request);

I need this code to run on a resin server space.

Problem is, it's importing apache functions.

Any way round this or alternatives to this so it will work within resin?

Thankyou in advance.

Cheers

emil
03-24-2010, 07:46 PM
That code should work fine. There's nothing in Resin preventing it. You will of course need to add the Apache HTTP client libraries to your classpath.

Emil