Click here to Skip to main content
15,888,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I have to post some data where the values are pipe separated to a third party. Content type used by me is 'application/x-www-form-urlencoded'.

But I read somewhere on the net that 'application/x-www-form-urlencoded' is used for name/value pairs are separated by the ampersand (&), and names are separated from values by the equal symbal (=).

Eg. MyVariableOne=ValueOne&MyVariableTwo=ValueTwo
But I have to send my values as Value1|Value2|Value3|Value4 using post method.

While using 'application/x-www-form-urlencoded' I am not getting the desired results.

Is there any way out?

Thanx

[EDIT]CODE tags added/corrected - LOSMAC[/EDIT]
Posted
Updated 27-Apr-12 10:22am
v2
Comments
Mehul M Thakkar 25-Apr-12 3:26am    
How had you tried? and why you want to send values in this format

1 solution

Use Split()[^] function to "divide" string by one or more delimited characters specified into an array.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900