|
|
|
|
|
|
|
|
|
Name "Inetc Local Test" |
|
OutFile "inetc_local.exe" |
|
RequestExecutionLevel user |
|
|
|
|
|
|
|
|
|
|
|
!include "MUI2.nsh" |
|
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install-colorful.ico" |
|
!insertmacro MUI_PAGE_INSTFILES |
|
!insertmacro MUI_LANGUAGE "English" |
|
|
|
|
|
|
|
|
|
|
|
Section "Dummy Section" SecDummy |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inetc::put "http://localhost/put.php" "$EXEDIR\test.jpg" |
|
Pop $0 |
|
|
|
inetc::put "ftp://localhost/test.jpg" "$EXEDIR\test.jpg" |
|
|
|
|
|
Pop $1 |
|
|
|
DetailPrint "PUT: HTTP $0, FTP $1 (verify server files)" |
|
|
|
|
|
|
|
|
|
|
|
|
|
inetc::post "login=ami&passwd=333" "http://localhost/post.php?lg=iam&pw=44" "$EXEDIR\post_reply.htm" |
|
Pop $2 |
|
|
|
DetailPrint "POST: $2 (post_reply.htm)" |
|
|
|
|
|
|
|
|
|
|
|
|
|
inetc::head /silent "http://localhost/m2.bmp" "$EXEDIR\head.txt" |
|
Pop $3 |
|
|
|
DetailPrint "HEAD: $3 (head.txt)" |
|
|
|
|
|
|
|
|
|
|
|
inetc::get "http://localhost/m2.bmp" "$EXEDIR\get1.jpg" "http://localhost/m2.bmp" "$EXEDIR\get2.jpg" |
|
Pop $4 |
|
|
|
inetc::get /popup "Localhost:GET with Popup" "http://localhost/m2.bmp" "$EXEDIR\get3.jpg" |
|
Pop $5 |
|
|
|
inetc::get /banner "Local Test GET with Banner" "http://localhost/m2.bmp" "$EXEDIR\get4.jpg" |
|
Pop $6 |
|
|
|
inetc::get /silent "ftp://localhost/test.jpg" "$EXEDIR\get5.jpg" |
|
Pop $7 |
|
|
|
DetailPrint "GET: NSISDL $4, POPUP $5, BANNER $6, FTP $7 (get1-5.jpg)" |
|
|
|
SetDetailsView show |
|
|
|
SectionEnd |
|
|