Hi guys,
am facing a peculiar problem in Servlets. How do you pass parameters from a
servlet residing one server to an asp page which is residing on another
server and get the response message back from them. I know we can use the
doPost() to send the parameter. what about the receiving of the message..
this is the following piece of code I wrote.
URL broadband = new URL("https://abc/ProcessService.asp"+encodedString);
URLConnection con = broadband.openConnection();
con.setUseCaches(false);
InputStream in = con.getInputStream();
encoded string is string variable here. comprising of around 10 different
parameters. the program works fine till con.setUseCaches(false) but after
that it fails to get the Input stream. help out if u can. I am trying to
solve the problem myself but some advise would help. I know I am passing the
parameters right but it would be gr8 if one of you would type out how the
parameters should be sent. like
"url?abc=123" etc. just specified one parameter u guys have to specify 3 or
more parameters. so go ahead. lets see u guys help me out soon..
Vijay
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html