Forums Register Login

getting XML from server

+Pie Number of slices to send: Send
I am able to send HASHed XML to server and when I read log files, I am logged in. Now thats a CGI script. That CGI-script should return me XML.

I use PERL code and I get XML back..

# if POST is successful, spit out return XML, else print error
if ($response->is_success) { print "$response->{_content}"; }
else { print "Response = failed\n"; }

Now I use this Java/JSP code, I don't get the reply..
I get Validation Error. But the log says I am validated.Do I need to change browser setting or something??

BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String line;
while ((line = rd.readLine()) != null) {
out.println(line);
}

Am I missing something??

Thanks,
Hari
+Pie Number of slices to send: Send
What is connection in the java code that you posted?
A "dutch baby" is not a baby. But this tiny ad is baby sized:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 738 times.
Similar Threads
Can you execute CGI From a Servlet?
How do I generate a org.apache.commons.httpclient.ProtocolException ?
Can you find the bug in <div> I do NOT get sample xml data[bookrss.xml]... RSS Client/Server
How to display InputSream dynamically on a JSP page?
cgi applet communication problems
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:34:54.