Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to Post Data to a different domain/url

How to Post Data to a different domain/url

Scheduled Pinned Locked Moved Visual Basic
tutorialdatabasecomsaleshelp
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    john_paul
    wrote on last edited by
    #1

    I am trying to figure out how to send data and my customer to my banks web site to enroll for paying their bills online. The post string that I am suppose to use is: https://banks_web_site.com/enroll?id=12345&name=Customer&accountid=98765&backurl=https://my_web_site.com/return.aspx The bank will return to me the following info and my customer (so they can continue the payment process) via https://my_web_site.com/return.aspx?return=0&enroll_id=765431 I'm having trouble trying to get this to work, any help would be appreciated. Another thing that has me stumped is if I do what the bank calls a payment search, I send to them with no return url: https://banks_web_site.com/pay_search?id=12345&&enroll_id=765432&days=2 They will return the following: 0::: 7777:1:1123123123:VISA:987554 8888:1:1231238744:AMEX:876454 Unlike the first example, the returned info is not qualified by a query string name. How do you receive this data ?

    L 1 Reply Last reply
    0
    • J john_paul

      I am trying to figure out how to send data and my customer to my banks web site to enroll for paying their bills online. The post string that I am suppose to use is: https://banks_web_site.com/enroll?id=12345&name=Customer&accountid=98765&backurl=https://my_web_site.com/return.aspx The bank will return to me the following info and my customer (so they can continue the payment process) via https://my_web_site.com/return.aspx?return=0&enroll_id=765431 I'm having trouble trying to get this to work, any help would be appreciated. Another thing that has me stumped is if I do what the bank calls a payment search, I send to them with no return url: https://banks_web_site.com/pay_search?id=12345&&enroll_id=765432&days=2 They will return the following: 0::: 7777:1:1123123123:VISA:987554 8888:1:1231238744:AMEX:876454 Unlike the first example, the returned info is not qualified by a query string name. How do you receive this data ?

      L Offline
      L Offline
      Leather99
      wrote on last edited by
      #2

      Response.Redirect("https://banks_web_site.com/enroll?id=12345&name=Customer&accountid=98765&backurl=https://my_web_site.com/return.aspx")

      L 1 Reply Last reply
      0
      • L Leather99

        Response.Redirect("https://banks_web_site.com/enroll?id=12345&name=Customer&accountid=98765&backurl=https://my_web_site.com/return.aspx")

        L Offline
        L Offline
        Leather99
        wrote on last edited by
        #3

        Hi Again, Request.QueryString should help with your other problem. Can you keep the questions to the forum, rather than Emailing me directly please? PS: All of this can be found in MSDN if you have a hunt around. You may find it quicker that posting because you will be able to find it as required. Thanks, L


        MCSD(VB6/SQL7) MCAD(C#/SQL2000) MCSD(C#/SQL2000)

        J 2 Replies Last reply
        0
        • L Leather99

          Hi Again, Request.QueryString should help with your other problem. Can you keep the questions to the forum, rather than Emailing me directly please? PS: All of this can be found in MSDN if you have a hunt around. You may find it quicker that posting because you will be able to find it as required. Thanks, L


          MCSD(VB6/SQL7) MCAD(C#/SQL2000) MCSD(C#/SQL2000)

          J Offline
          J Offline
          john_paul
          wrote on last edited by
          #4

          Thanks Sorry for the email

          1 Reply Last reply
          0
          • L Leather99

            Hi Again, Request.QueryString should help with your other problem. Can you keep the questions to the forum, rather than Emailing me directly please? PS: All of this can be found in MSDN if you have a hunt around. You may find it quicker that posting because you will be able to find it as required. Thanks, L


            MCSD(VB6/SQL7) MCAD(C#/SQL2000) MCSD(C#/SQL2000)

            J Offline
            J Offline
            john_paul
            wrote on last edited by
            #5

            I did look in MSDN and it showed using the request.query.string without any parameters and the output as being unparsed. But what they don't show and I don't understand is how I get the unparsed data into a variable that I can parse. The data that I will be receiving does not have any parameter names just data. Thanks

            L 1 Reply Last reply
            0
            • J john_paul

              I did look in MSDN and it showed using the request.query.string without any parameters and the output as being unparsed. But what they don't show and I don't understand is how I get the unparsed data into a variable that I can parse. The data that I will be receiving does not have any parameter names just data. Thanks

              L Offline
              L Offline
              Leather99
              wrote on last edited by
              #6

              Ok, try the following code, then call the page with a string appended to the url after a question mark. For example "http://LocalHost/TestWebSite/WebForm1.aspx?ARandomStringThatIAddedToTheURL"

              Dim sQueryString As String = ""

              For index As Integer = 0 To (Request.QueryString.Count - 1)
              sQueryString &= Request.QueryString(index) & "<BR>"
              Next

              Response.Write("Query String: <BR><BR>" & sQueryString)


              MCSD(VB6/SQL7) MCAD(C#/SQL2000) MCSD(C#/SQL2000) -- modified at 3:57 Thursday 3rd November, 2005

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups