P
Prasanna
Hi All,
I am trying to post data to an ASP file with in IBM's WebSphere
environment. Can some one tell me why this code is not working. This
code does not give me any errors, but the data is being posted.
//mu URL
String strURL = "http://custcaredev.int.westgroup.co...qID=199&ReqEntryID=29483&FName=Attachment.csv";
System.out.println(" URL = " + strURL);//just printing to console
URL HoURL = new URL(strURL);
URLConnection urlc = HoURL.openConnection();
urlc.setDoInput (true);
urlc.setDoOutput(true);
urlc.setUseCaches (false);
urlc.setRequestProperty("Content-type","application/x-www-form-urlencoded");
DataOutputStream outSt = new DataOutputStream (urlc.getOutputStream
());
outSt.writeBytes(Fbody); //Fbody is a string. The data to be posted.
outSt.flush ();
outSt.close ();
System.out.println(" End - writing to the URL");
I tried this code from with in an EJB, and also using a servlet. The
ASP file did not get the posted data both the situations.
I appreciate any help in this regard.
Thanks
Prasanna
I am trying to post data to an ASP file with in IBM's WebSphere
environment. Can some one tell me why this code is not working. This
code does not give me any errors, but the data is being posted.
//mu URL
String strURL = "http://custcaredev.int.westgroup.co...qID=199&ReqEntryID=29483&FName=Attachment.csv";
System.out.println(" URL = " + strURL);//just printing to console
URL HoURL = new URL(strURL);
URLConnection urlc = HoURL.openConnection();
urlc.setDoInput (true);
urlc.setDoOutput(true);
urlc.setUseCaches (false);
urlc.setRequestProperty("Content-type","application/x-www-form-urlencoded");
DataOutputStream outSt = new DataOutputStream (urlc.getOutputStream
());
outSt.writeBytes(Fbody); //Fbody is a string. The data to be posted.
outSt.flush ();
outSt.close ();
System.out.println(" End - writing to the URL");
I tried this code from with in an EJB, and also using a servlet. The
ASP file did not get the posted data both the situations.
I appreciate any help in this regard.
Thanks
Prasanna