login about faq

Is it possible to post variables on a download request using CkHttp_Download?

I have made a php page which returns an image. This works fine, but i need to modify the image based off of user input... I would prefer to use POST instead of GET. Any ideas?

asked Oct 29 '14 at 16:18

iifuzz's gravatar image

iifuzz
1339


The need for POST instead of GET is typically when the HTTP request body contains data, such as an XML document, a JSON document, etc, or if it contains parameters that are lengthy and/or numerous. If you have a few parameters (variables), such as name=bob and value=22, then just put them in the URL for the GET. For example:

http://www.chilkatsoft.com/myDownload.zip?name=bob&value=22

The params in the URL need to be URL encoded. To construct that part of the string, you could use the Chilkat.HttpRequest object, call AddParam for each param, and then get the URL encoded param string via the GetUrlEncodedParams method.

link

answered Oct 30 '14 at 22:42

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

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

Asked: Oct 29 '14 at 16:18

Seen: 623 times

Last updated: Oct 30 '14 at 22:42

powered by OSQA