eg. http://localhost:8080/index.html
I am attempting to use the plugin to test the validity of a user-provided URL, ensuring that it's pointing to a web service by POSTing to it, and checking the response.
So far, tests with a URL that does not contain a port number have worked successfully, but a URL that DOES contain a port number keeps returning "Server Error" messages. I tried opening the same URL in Internet Explorer (Because I know that the plugin uses IE behind the scenes), and it opened fine.
Below is a cut-down example of what I'm doing (With fake URLs), that includes a POST without a port number, and one with a port number. With actual URLs the first MessageBox will give an "OK" message, and the second an error.
Any help would be greatly appreciated.
!define NOPORT_URL "http://localhost/WebServicePath/Page.asmx"
!define PORT_URL "http://localhost:8080/WebServicePath2/Page.asmx"
Name "InetLoadTest"
OutFile "Test.exe"
!include "MUI.nsh"
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section "Dummy Section" SecDummy
; Call the "Ping" method of the web service
InetLoad::load /POST "" "${NOPORT_URL}/Ping" "$EXEDIR\TestURL.xml"
Pop $1
MessageBox MB_OK "$1"
InetLoad::load /POST "" "${PORT_URL}/Ping" "$EXEDIR\TestURL2.xml"
Pop $1
MessageBox MB_OK "$1"
SectionEnd