help with urlencoding and post forms

Drew

Client
Регистрация
29.07.2012
Сообщения
70
Благодарностей
14
Баллы
8
Trying to send a post request and the encoding is listed as 'application/x-www-form-urlencoded'

http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1

application/x-www-form-urlencoded

This is the default content type. Forms submitted with this content type must be encoded as follows:

Control names and values are escaped. Space characters are replaced by `+', and then reserved characters are escaped as described in [RFC1738], section 2.2: Non-alphanumeric characters are replaced by `%HH', a percent sign and two hexadecimal digits representing the ASCII code of the character. Line breaks are represented as "CR LF" pairs (i.e., `%0D%0A').
The control names/values are listed in the order they appear in the document. The name is separated from the value by `=' and name/value pairs are separated from each other by `&'.

in the post settings I do not see "application/x-www-form-urlencoded " as an option?
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
"application/x-www-form-urlencoded ". There is a checkbox in the POST action for data type.

And you have to encode the url string before putting it into POST. You can do it with a bunch of replaces in word processing action, or you can do it with c# code.
 

Drew

Client
Регистрация
29.07.2012
Сообщения
70
Благодарностей
14
Баллы
8
"application/x-www-form-urlencoded ". There is a checkbox in the POST action for data type.

And you have to encode the url string before putting it into POST. You can do it with a bunch of replaces in word processing action, or you can do it with c# code.
oh see that was my misunderstanding I though it was going to do the encoding for me, not an issue now that I know it has to be done on my end.
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
  • Спасибо
Реакции: Nyter

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)