I am a JSP newb. I have been scratching my head over this for a while.
My task: to construct a POST and to read the response that comes back.
I have been provided with some kits that illistrate how to do the job in ASP, ASP.NET and PHP, but alas not in JSP.
I have been googling but to no avail.
Below is a snippet of the ASP equivalent code:-
'** Use the Windows WinHTTP object to POST the data directly from this server to 3rd party **
'** Data is posted to strPurchaseURL which is set depending on whether you are using SIMULATOR, TEST or LIVE **
set httpRequest = CreateObject("WinHttp.WinHttprequest.5.1")
on error resume next
httpRequest.Open "POST", CStr(strPurchaseURL), false
httpRequest.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
strResponse = httpRequest.responseText
<form name="customerform1" action="transactionRegistration.asp" method="POST">
Any suggestions, help, pointers welcome.