Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WwIPStuff and Ports?
Message
 
To
03/11/1999 00:27:12
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00285906
Message ID:
00286274
Views:
22
I am getting a 404 error when my code looks like this:
<
>
	clear
	set procedure to wwUtils additive
	set classlib to wwIPStuff additive
	local loIP, lnBuf, lcData, lnCode, lcSite, lcPath
	loIP = create('wwIpStuff')
	lnBuf = 0 && reset before every Get!!!
	lcData = '' && reset before every Get!!!
	lcSite = '147.140.151.132'  && note: no leading 'http://
	lcPath = '/success.html'
	lcUserName = 'webexec'
	lcPassword = 'webexec'
	llHTTPS = .f.
	lnHTTPPort = 64831
	lnCode = loIp.HTTPConnect(m.lcSite,m.lcUserName,m.lcPassword,m.llHTTPS)
	if  m.lnCode # 0
	  * error, deal with loIp.cErrorMsg
	else
	  lnCode = loIp.HTTPGetEX(m.lcPath, @lcData, @lnBuf)
	  if m.lnCode = 0
		? lcData
	  endif
	endif
	= loIp.HTTPClose()  && no matter what
<
>


However, if I enter this in a new instance of IE:
<
>
http://147.140.151.132:64831/success.html
<
>
I am asked to authenticate and then get my success.html result returned.

Now, if I modify my lcPath above to just 'index.html' (which is a file on port80), I get it no problem (the port80 site named defaulthome in the MMC does no NTLM at all).

What's weirder is the fact that if I modify lcPath to 'upload3/success.html' I get a 401.1 login failed. upload3 is the actual MMC name (and directory) of the web site on port 37113.

Both sites are running in seperate memory spaces, if that makes a difference.
Previous
Reply
Map
View

Click here to load this message in the networking platform