Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WwIPStuff - Download?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00284656
Message ID:
00286858
Vues:
18
]You can't specify the port on the domain name. Use nHTTPPort for the port.

I am specifying the port in the code below, but it is still getting a page from the web site on port 80. Actually, I can give it completely bogus port info (although it is valid in the code below) and it still always goes to port 80.
clear
set procedure to wwUtils additive
set classlib to wwIPStuff additive
local loIP, lnBuf, lcData, lnCode, lcSite, lcPath, lcUserName, lcPassWord, llHTTPS, lnHTTPPort
loIP = create('wwIpStuff')
lnBuf = 0 && reset before every Get!!!
lcData = '' && reset before every Get!!!
lcSite = '147.140.128.128'  && note: no leading 'http://
lcPath = '/index.html'
lcUserName = 'user'
lcPassword = 'easypass'
llHTTPS = .f.
lnHTTPPort = 7200
lnCode = loIp.HTTPConnect(m.lcSite)
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
In the MMC, I made two sites at the same IP address. One is on port 80 and the other is on port 7200. They both have different index.html files. The one on port 80 is good for IUSR and the other requires NTLM authentication. If I use IE4SP2, I can http://147.140.128.128:80/index.html and see my result. If I use the IE4SP2 to http://147.140.128.128:7200/index.html I authenticate and then see my result.

However, if I use wwIPStuff (downloaded from the "book buyers only" page at the Hentzenwerke web site), it looks like the port is definitely being ignored. Just to take things a little further, I completely stopped the site at port 7200: IE reported it could not connect to the site at all, but wwIPStuff returned the index.html from the port 80 site.

I've isolated this as much as possible to my code or the class; you had mentioned that my code looked OK, is there something in the class that might be awry? I'm really stuck - and desperate.

Thanks.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform