Hi,
I have asp.net with vb web application,in that i need to use http post method with 3 parameters, one of the parametes in byte format.I am new to http post method in server side, i am famler with clint side json method. but to use in server side with 3 parameters.
I am used above code Is it correct way, but it return "Invalid Request"
Pls help to solve this problem.
Regards,
Aravind
I have asp.net with vb web application,in that i need to use http post method with 3 parameters, one of the parametes in byte format.I am new to http post method in server side, i am famler with clint side json method. but to use in server side with 3 parameters.
VB.NET:
Dim url = "https://testgateway.com"
Dim client = New WebClient()
Dim method = "POST"
Dim parameters = New NameValueCollection()
parameters.Add("parameter1", stry)
parameters.Add("parameter2", strJSON)
parameters.Add("parameter3", aa.ToString) ' This paramete in byte and i passed as string.
Dim response_data = client.UploadValues(url, method, parameters)
Dim responseString = UnicodeEncoding.UTF8.GetString(response_data)
Pls help to solve this problem.
Regards,
Aravind
Last edited by a moderator: