Passing pdf file to server

  • Last Post 10 October 2017
Ericus posted this 26 August 2017


The help says:

http(s):// and then says 'The image file is transmitted in the request body'

How do I do that?

In my application Windev I use something like this;HTTPCreateForm("FORM")
HTTPAddParameter("FORM", "method", "processImage")
HTTPAddParameter("FORM", "language", "english")
HTTPAddParameter("FORM", "exportformat", "pdfSearchable")
HTTPAddFile("FORM", "filepath", "D:\Google Drive\ScanSnap\Ekhuhurleni2.pdf")
HTTPSendForm("FORM", "")

I get a result that says 'Object moved to /Account/Welcome

Any suggestions please?


Anna Savinova posted this 10 October 2017

You should send request to "http(s)://"not "http(s)://". So try to remove the line "HTTPAddParameter("FORM", "method", "processImage")" and change the target URL.