login about faq

Hi Chilkat Support,

Correct POST captured using Fiddler


POST http://bbs.xxxxg.com/forum.php?mod=post&action=reply&fid=133&tid=55556&
extra=page%3D1&replysubmit=yes&infloat=yes&handlekey=fastpost&inajax=1 HTTP/1.1
Accept: text/html, application/.......
.....
.....
Cookie: xxxxxxxxx
message=%B6%A5%C9%CF%7E%7E%7E%7E%7E&posttime=1398600510&formhash=77e8f013&
usesig=1&subject=++


The problem is the param "subject" value, I am getting %2B%2B instead of ++:


message=%B6%A5%C9%CF%7E%7E%7E%7E%7E&posttime=1398915054&formhash=f227f7b&
usesig=1&subject=%2B%2B


my code is

Request.AddParam("subject","++");

I also tried " " (spacespace) as it is encoded as ++ in URL encoding/decoding.
But I got %20%20.

The response I get is invalid symbol found.

Please advise what can be done to get :
subject=++.

Thanks in advance.

(I am using the 9.5.0.36 VC++ 9 win32)

Best regards
Dragon

asked May 01 '14 at 00:00

dragon's gravatar image

dragon
333711

edited May 01 '14 at 08:17


If the Content-Type of the POST is application/x-www-form-urlencoded, then it is correct to URL encoded the params in the body as Chilkat has done. The exact URL encoding used by Chilkat is according to RFC 3986.

If you don't want this format, another option is to set the HttpRequest object's ContentType property equal to "text/namevalue". This will cause the params to be sent in "NVP" format.

link

answered May 04 '14 at 19:15

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Oh, great ! Thanks.

link

answered May 04 '14 at 22:45

dragon's gravatar image

dragon
333711

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×186
×26
×9

Asked: May 01 '14 at 00:00

Seen: 979 times

Last updated: May 04 '14 at 22:45

powered by OSQA