login about faq

Is there any way to send a post url request with out having it encoded into a format like http://www.somthing.com?id=20&address=1212%20s%20somestreet but rather something like this http://www.somthing.com?id=20&address=1212 s somestreet

asked Apr 08 '13 at 10:21

sirchad's gravatar image


I did say that this wrong it should have been a post request not a get request.

(Apr 08 '13 at 14:19) sirchad

No, because this would be in violation of the HTTP protocol.


answered Apr 08 '13 at 12:07

chilkat's gravatar image

chilkat ♦♦

I was afraid someone would say that. The text below is straight from the payflow pro api guide. If it cannot be done it cannot be done.

Do not URL encode your NVP data because it can cause problems with authentication and reporting.

This example is incorrect: BILLTOSTREET%3D123+Main+St.%26BILLTOCITY%3DSan+Jose%26BILLTOSTATE%3DCA%2 6BILLTOZIP%3D951311234%26BILLTOCOUNTRY%3DUS%26CVV2%3D123%26CUSTIP%3D0.0.0.0

This example is correct: BILLTOSTREET=123 Main St.&BILLTOCITY=San Jose&BILLTOSTATE=CA&BILLTOZIP=951311234&BILLTOCOUNTRY=US&CVV2=123&CUSTIP=0. 0.0.0

(Apr 08 '13 at 12:26) sirchad

What you need is actually possible with Chilkat HTTP. I misunderstood the original question. If you are trying to send a GET request where the params are included in the HTTP start line (i.e. NOT in the body of the HTTP request), then I am correct in saying that it's not possible because it's a violation of the HTTP protocol.

However, if the HTTP params are instead provided in the body of the HTTP request, where the Content-Type header is appropriately set to indicate the content's type, then it is possible. I've addressed this issue before. I'm looking for the answer now..


answered Apr 08 '13 at 12:34

chilkat's gravatar image

chilkat ♦♦


answered Apr 08 '13 at 12:38

chilkat's gravatar image

chilkat ♦♦

Thanks I missed loReq.AddHeader("content-type","text/namevalue") for some reason. Thanks for your help.

(Apr 09 '13 at 10:08) sirchad
Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: Apr 08 '13 at 10:21

Seen: 3,169 times

Last updated: Apr 09 '13 at 10:08

powered by OSQA