0

Hi,

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"
httpRequest.send strPost
strResponse = httpRequest.responseText
.
.
<form name="customerform1" action="transactionRegistration.asp" method="POST">
.
.
Any suggestions, help, pointers welcome.

Regards
Nick

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by ~s.o.s~
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.