InfoPath: Using a POST Method and opening response - InfoPath Dev
in

InfoPath Dev

InfoPath: Using a POST Method and opening response

Last post 03-28-2013 12:14 PM by Bnighgrow. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 03-28-2013 12:14 PM

    InfoPath: Using a POST Method and opening response

    Hello,

    I am confused on what to do with the response after making a POST to a web site. I have made an InfoPath form which takes just the user's information (FName, LName, Email, Phone) and an amount. Once they hit submit it runs some custom VB code to post to the Authorize.Net web site and I get a response back in the form of HTML. I am trying to open this response in the default browser so the user can continue filling out their credit card information.

    Dim objResponse As HttpWebResponse = CType(Request.GetResponse(), HttpWebResponse)

    Dim responseStream As New StreamReader(objResponse.GetResponseStream())

    Dim post_response As String = responseStream.ReadToEnd()

    responseStream.Close()

    post_response has the html form that comes back.

    Any insight or help would be greatly appreciated.

    Brandon

    Filed under: ,
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.