Old 11th January 2005, 11:26   #1
ssrdjan
Junior Member
 
Join Date: Jan 2005
Location: Serbia
Posts: 3
Send a message via ICQ to 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.
ssrdjan is offline   Reply With Quote
Old 11th January 2005, 13:32   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 11th January 2005, 13:49   #3
ssrdjan
Junior Member
 
Join Date: Jan 2005
Location: Serbia
Posts: 3
Send a message via ICQ to 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/"
ssrdjan is offline   Reply With Quote
Old 11th January 2005, 13:52   #4
RobGrant
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"
RobGrant is offline   Reply With Quote
Old 12th January 2005, 08:39   #5
ssrdjan
Junior Member
 
Join Date: Jan 2005
Location: Serbia
Posts: 3
Send a message via ICQ to 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
ssrdjan is offline   Reply With Quote
Old 12th January 2005, 12:00   #6
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump