java socket reading response from asp.net

G

Guest

I've written a java applet to write multipart form to post to asp.net page.
It works, asp.net can read all the form values and things i wanted from the
socket posting. Now I want to get some sort of a reply/response from
asp.net, but as soon as I try to read something from java's socket's
inputstream, I get a connection reset exception. In my asp.net page, I have
a response.write("AN REPLY");. I was hoping the java can pick that up...

Can someone help?
 
J

Joerg Jooss

Jason said:
I've written a java applet to write multipart form to post to asp.net
page. It works, asp.net can read all the form values and things i
wanted from the socket posting. Now I want to get some sort of a
reply/response from asp.net, but as soon as I try to read something
from java's socket's inputstream, I get a connection reset exception.
In my asp.net page, I have a response.write("AN REPLY");. I was
hoping the java can pick that up...

Can someone help?

Post it to a Java group ;-)

If possible, use some higher level component like UrlConnection or a
full fledged HTTP client class instead of plain sockets. That will make
your life a lot easier (the same goes for .NET based HTTP client code).

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
arinsharma
Top