PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Download a pdf file from web server using HTTPS
Download a pdf file from web server using HTTPS
Débuté par marrone, 30 oct. 2006 14:40 - 4 réponses
Posté le 30 octobre 2006 - 14:40
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
Posté le 03 novembre 2006 - 15:42
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…")



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
Posté le 03 novembre 2006 - 15:43
...
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
Posté le 03 novembre 2006 - 16:04
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
Posté le 01 juillet 2025 - 03:59
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