Skip to content
⌘ NSIS Forum Archive

check URL path exists

6 posts

ssrdjan#

check URL path exists

how can I check does entered URL path is valid? I request from user to create virtual and absolute folder manualy, then to enter full URL path to the app. I want to check does entered URL path exists.
Afrow UK#
You can use Lobo-Lunar's Internet plugin:


Then use this function to chop up a URL:


-Stu
ssrdjan#
thank you, i will try

i try some other solution, too:

;empty file
FileOpen $0 "$INSTDIR\check.gif" w
FileClose $0

StrCpy $1 "$HTTP_PATH/check.gif"
NSISdl::download "$1" "c:\check.tmp"
Pop $R0
MessageBox MB_OK "$R0"

but i gets message "Access Denied". whats wrong with this?
HTTP_PATH = "http://localhost/ProjectDir/"
RobGrant#
Check your permission and whether you want the full expanded path to include two backslashes (\\):

StrCpy $1 "http://localhost/ProjectDir//check.gif"
ssrdjan#
Thanks a lot, guys.
Problem was with Anonymous acces in Authentication methods of web folder.
NSISdl::download and Internet plugin works very good.

Regards
Afrow UK#
I recommend using this plugin by Takhir instead of NSISdl. NSISdl has problems with proxies.



-Stu