Re: URLConnection.getOutputStream().write() fails

2005-08-08 Thread Ronald Klop
Did you try URLConnection.setDoOutput(true)? Ronald. On Wed Aug 03 23:52:45 CEST 2005 Tomcat Users List wrote: PROBLEM: Trying to write to URL via URLConnection.getOutputStream().write() fails. In the main method below, the code attempts to write some bytes to HYPERLINK "http://loca

Re: FW: URLConnection.getOutputStream().write() fails

2005-08-03 Thread Wade Chandler
You can also learn more about the default servlet here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/funcspecs/fs-default.html Hope it helps, Wade --- [EMAIL PROTECTED] wrote: > Hi Wade :) > > > Not sure what you are trying to do here, but what > you > > are doing is attempting to

Re: FW: URLConnection.getOutputStream().write() fails

2005-08-03 Thread Wade Chandler
Yes this is a PUT actually. A POST will simply send parameters to the server as a stream with the server some how making a process operate on the POST info (usually the file POST to such as a .jsp or a .php file) unless you have a special servlet for taking a POST and dumping the input stream to f

Re: FW: URLConnection.getOutputStream().write() fails

2005-08-03 Thread julian
Hi Wade :) Not sure what you are trying to do here, but what you are doing is attempting to POST to a text file. Correct. One your TC server is probably only allowing a GET on the .txt file as it will not "process" the .txt file, So, as a Tomcat newbie, is there a configuration I need to m

Re: FW: URLConnection.getOutputStream().write() fails

2005-08-03 Thread julian
Hi Wade :) Not sure what you are trying to do here, but what you are doing is attempting to POST to a text file. Correct. One your TC server is probably only allowing a GET on the .txt file as it will not "process" the .txt file, So, as a Tomcat newbie, is there a configuration I need to m

Re: URLConnection.getOutputStream().write() fails

2005-08-03 Thread Wade Chandler
need to do things differently all the way around. Were you trying to use the PUT command? Were you trying to make POSTs? Wade --- Julian Salerno <[EMAIL PROTECTED]> wrote: > PROBLEM: > > Trying to write to URL via > URLConnection.getOutputStream().write() fails. > >

URLConnection.getOutputStream().write() fails

2005-08-03 Thread Julian Salerno
PROBLEM: Trying to write to URL via URLConnection.getOutputStream().write() fails. In the main method below, the code attempts to write some bytes to HYPERLINK "http://localhost:8080/temp/sample.txt"http://localhost:8080/temp/sample.txt . "http://localhost:8080/temp/

URLConnection.getOutputStream().write() fails

2005-08-03 Thread Julian Salerno
PROBLEM: Trying to write to URL via URLConnection.getOutputStream().write() fails. In the main method below, the code attempts to write some bytes to HYPERLINK "http://localhost:8080/temp/sample.txt"http://localhost:8080/temp/sample.txt . "http://localhost:8080/temp/