You can create the post yourself
Here's some code I use to post a credit card transaction, which returns to
the caller. You can then redirect to an acknowledgement page:
Private Function viaKlixPostTran saction(ByVal trans As
viaKlixTransact ion) As String
modErr.EnterFun ction("OrderFor m.aspx.vb.viaKl ixPostTransacti on")
Dim sbldr As New StringBuilder
Dim params As NameValueCollec tion = trans.GetValues
Dim iEnum As IEnumerator = params.Keys.Get Enumerator
' Build the request string from the parameters
Do While iEnum.MoveNext
Dim sKey As String = iEnum.Current
If Not params.Item(sKe y) Is Nothing AndAlso
params.Item(sKe y).ToString <> "" Then
sbldr.Append(sK ey)
sbldr.Append("= ")
sbldr.Append(Se rver.UrlEncode( params.Item(sKe y)))
sbldr.Append("& ")
End If
Loop
sbldr.Remove(sb ldr.Length - 1, 1) 'Remove trailing "&"
'Post the request
Dim dataResponse As String
Dim dataBody As String = sbldr.ToString
Dim webResponse As HttpWebResponse
Dim webRequestStrea m As System.IO.Strea m
Dim webRequest As HttpWebRequest
Dim responseStream As Stream
' Create the RequestStream
Try
webRequest =
webRequest.Crea te("https://www2.viaklix.co m/process.asp")
' Note - "KeepAlive = False" seems to be needed to avoid errors,
apparently caused by the client
' (this application) thinking the connection is being
maintained while the server or
' firewall may disconnect it. Apparently, if the client
doesn't maintain it, it will know
' enough to re-establish it when it needs it.
webRequest.Keep Alive = False
webRequest.Meth od = "POST"
webRequest.Cont entType = "applicatio n/x-www-form-urlencoded"
' Create request body
webRequest.Cont entLength = dataBody.Length
webRequestStrea m = webRequest.GetR equestStream()
Catch ex As Exception
modErr.WriteLog ("Creating RequestStream: " & ex.ToString, 0)
End Try
' Write the WebRequest
Try
Dim writer As New StreamWriter(we bRequestStream)
writer.Write(da taBody)
'TODO - writer.close can probably go into a Finally block...
Try 'Getting an exception on this shouldn't stop us...
writer.Close() 'Closes the StreamWriter and the underlying
stream
Catch ex As Exception
modErr.WriteLog ("Writer.Clo se: " & ex.ToString, 0)
End Try
Catch ex As Exception ' Catches error on writer.write
modErr.WriteLog (ex.ToString, 0)
modErr.WriteLog (dataBody, 1) 'Looking for data dependency
modErr.ExitFunc tion()
Return Nothing
End Try
' Get the response from viaKlix
Try
webResponse = webRequest.GetR esponse()
responseStream = webResponse.Get ResponseStream( )
Dim readStream As New System.IO.Strea mReader(respons eStream)
dataResponse = readStream.Read ToEnd
readStream.Clos e() 'Closes the StreamReader and the underlying
stream
modErr.ExitFunc tion()
Return dataResponse
Catch ex As Exception
modErr.WriteLog ("Reading Response: " & ex.ToString, 0)
modErr.ExitFunc tion()
Return Nothing
End Try
End Function
"Piotr Strycharz" <Pi************ *@antispam-account.com> wrote in message
news:c6******** **@atlantis.new s.tpi.pl...
Użytkownik "Patrice" <no****@nowhere .com> napisał w wiadomo¶ci
news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. TYhis is not an ASP.NET limitation (an "ASP.NET" page is anyway just an
HTML Page).
Well - actually it is. I cannot provide my ACTION element in FORM
What thinks the owner of the page. Perhaps could a provide a GET version
?
Not possible. It is credit card verifier that allows parameters only as
POST data due to security reasons.
Piotr