Details
Description
The TestWfsPost class doesn't support BASIC authentication,
so if you use it to test a protected server, it doesn't work.
I rudely fixed it, adding these lines:
//SISfixed - if there was authentication info in the request,
//pass it along the way to the target URL
String authHeader = request.getHeader("Authorization");
if( authHeader != null )
acon.setRequestProperty("Authorization",authHeader);
inside the processRequest() method between the lines:
acon.setDoOutput(true);
acon.setDoInput(true);
acon.setUseCaches(false);
and
//acon.setRequestProperty("Content-Type", "application/xml");
if (!doGet) {
xmlOut = new PrintWriter(new BufferedWriter(
There are surely better ways, but it worked for me.
Bye
Paolo Rizzi
patch applied