|
PROFESSIONAL NEWSGROUPS WINDEV, WEBDEV and WINDEV Mobile |
| | | | | |
Download a pdf file from web server using HTTPS |
Started by marrone, Oct., 30 2006 2:40 PM - 4 replies |
| |
| | | |
|
| |
Posted on October, 30 2006 - 2:40 PM |
Hi All I need to be able to download a pdf file from my companys web server. Here is the code: Proxy("192.168.51.1", 8080) //Perform an HTTP request sHTMLCode is string = HTTPRequest("https://www.brisnet.com/secure-bin/pdfreports/dlr/dlr.cgi/kee1028p.pdf…") Info("The HTML code is: " + sHTMLCode) //Cancels the use of the proxy Proxy("") I got this from the help, but it returns a 0, false. I could really use some help on this one. I am running this code from a WD10 windows application in a buttons click event. This is not a web application but I do need to be able to download pdf files from our web server. I am using a proxy because I am testing this fron in house. Please if somebody can show me how to download a pdf file from a secured server I reallyy would be thankful. Thanks John |
| |
| |
| | | |
|
| | |
| |
Posted on November, 03 2006 - 3:42 PM |
something else to check out are empty parameters. You don't include them, however, UserName and Password are the last two parameters, so you should include the empty ones, too, as in the help example: HTTPRequest("http://www.Windev.com", ... "","","","Julia","Password") regards Mat |
| |
| |
| | | |
|
| | |
| |
Posted on November, 03 2006 - 3:43 PM |
...
Proxy("192.168.51.1", 8080) //Perform an HTTP request sHTMLCode is string = HTTPRequest(" https://www.brisnet.com/secure-bin/pdfreports/dlr/dlr.cgi/kee1028p.pdf…") Info("The HTML code is: " + sHTMLCode) //Cancels the use of the proxy Proxy("") I got this from the help, but it returns a 0, false. I could really use some help on this one. I am running this code from a WD10 windows application in a buttons click event. This is not a web application but I do need to be able to download pdf files from our web server. I am using a proxy because I am testing this fron in house. Please if somebody can show me how to download a pdf file from a secured server I reallyy would be thankful. ...
I'm not an expert but as the port number for https is normally 443, one question could be whether there is a conflict between your server, https and the port 8080 you specify in Windev. Regards Mat |
| |
| |
| | | |
|
| | |
| |
Posted on November, 03 2006 - 4:04 PM |
Hi All I need to be able to download a pdf file from my companys web server. Here is the code: Proxy("192.168.51.1", 8080) //Perform an HTTP request sHTMLCode is string = HTTPRequest(" https://www.brisnet.com/secure-bin/pdfreports/dlr/dlr.cgi/kee1028p.pdf…") Info("The HTML code is: " + sHTMLCode) //Cancels the use of the proxy Proxy("") I got this from the help, but it returns a 0, false. I could really use some help on this one. I am running this code from a WD10 windows application in a buttons click event. This is not a web application but I do need to be able to download pdf files from our web server. I am using a proxy because I am testing this fron in house. Please if somebody can show me how to download a pdf file from a secured server I reallyy would be thankful. Thanks John
You need to use the HTTPGetResult() to retreive the content of the HTTPRequest; From the manual; ResGet = HTTPRequest("http://www.WinDev.com") IF ResGet = True THEN Info("The HTML code is: "+ HTTPGetResult ()) END |
| |
| |
| | | |
|
| | |
| |
Posted on July, 01 2025 - 3:59 AM |
To retrieve the contents of the HTTPRequest, you must use the HTTPGetResult() function.
escribío:
Hi All I need to be able to download a pdf file from my companys web server. Here is the code: Proxy("192.168.51.1", 8080) //Perform an HTTP request sHTMLCode is string = HTTPRequest(" https://www.brisnet.com/secure-bin/pdfreports/dlr/dlr.cgi/kee1028p.pdf… https://speedstars-game.io ","username","password") Info("The HTML code is: " + sHTMLCode) //Cancels the use of the proxy Proxy("") I got this from the help, but it returns a 0, false. I could really use some help on this one. I am running this code from a WD10 windows application in a buttons click event. This is not a web application but I do need to be able to download pdf files from our web server. I am using a proxy because I am testing this fron in house. Please if somebody can show me how to download a pdf file from a secured server I reallyy would be thankful. Thanks John You need to use the HTTPGetResult() to retreive the content of the HTTPRequest; From the manual; ResGet = HTTPRequest(" http://www.WinDev.com") IF ResGet = True THEN Info("The HTML code is: "+ HTTPGetResult ()) END |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|