|
|
#1 |
|
Junior Member
|
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.
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
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 |
|
|
|
|
|
#3 |
|
Junior Member
|
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/" |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Sep 2004
Location: Nottingham
Posts: 263
|
Check your permission and whether you want the full expanded path to include two backslashes (\\):
StrCpy $1 "http://localhost/ProjectDir//check.gif" |
|
|
|
|
|
#5 |
|
Junior Member
|
Thanks a lot, guys.
Problem was with Anonymous acces in Authentication methods of web folder. NSISdl::download and Internet plugin works very good. Regards |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
I recommend using this plugin by Takhir instead of NSISdl. NSISdl has problems with proxies.
http://forums.winamp.com/attachment....postid=1564789 -Stu |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|