.net - HttpWebRequest - brackets not allowed in POST -


edit: using copied code project overly complicated... luckily weekend isn't far away.

*****original question*************

i'm wrapping external sms-gateway api internal use - external api requires message multiple recipients uses following syntax:

http://(smsgateway)/?username=foo&pass=bar&from=myname&recipient[]=4512345678&recipient[]=4587654321&...

that works fine requests rather post gateway avoid issues large url's generated. though http 1.1 not explicitly constrain clients sending requests long urls server.

the issue here i'm not allowed use form parameter name containing brackets if use httpwebrequest in .net 4. following error: 'specified value has invalid http header characters'

my question is: haven't been able find in http 1.1 specification regarding invalid characters in form parameter names why not allowed use form parameter name called 'recipients[]'?

how sending post request? http not care post "form parameters", because sent in request body (with appropriate content encoding).


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -