How to Post Data to a different domain/url
-
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 ?
-
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 ?
Response.Redirect("https://banks_web_site.com/enroll?id=12345&name=Customer&accountid=98765&backurl=https://my_web_site.com/return.aspx")
-
Response.Redirect("https://banks_web_site.com/enroll?id=12345&name=Customer&accountid=98765&backurl=https://my_web_site.com/return.aspx")
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)
-
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)
-
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)
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
-
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
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>"
NextResponse.Write("Query String: <BR><BR>" & sQueryString)
MCSD(VB6/SQL7) MCAD(C#/SQL2000) MCSD(C#/SQL2000) -- modified at 3:57 Thursday 3rd November, 2005