Archive: check URL path exists


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.


You can use Lobo-Lunar's Internet plugin:
http://www.lobo-lunar.com/nsis/

Then use this function to chop up a URL:
http://nsis.sourceforge.net/archive/...instances=0,11

-Stu


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/"


Check your permission and whether you want the full expanded path to include two backslashes (\\):

StrCpy $1 "http://localhost/ProjectDir//check.gif"


Thanks a lot, guys.
Problem was with Anonymous acces in Authentication methods of web folder.
NSISdl::download and Internet plugin works very good.

Regards


I recommend using this plugin by Takhir instead of NSISdl. NSISdl has problems with proxies.

http://forums.winamp.com/attachment....postid=1564789

-Stu