Author |
|
GadgetGuy Super User
Joined: June 01 2008 Location: United States
Online Status: Offline Posts: 942
|
Posted: April 06 2022 at 12:09 | IP Logged
|
|
|
Dave -
Were you ever able to figure out a way to URL Scrape the Temp data from my TempStick's (https://tempstick.com/)strange indirect data references?
Also I have been stumped/frustrated for a year by my inability to access the PH web server every time Microsoft downloads a new update. I can't figure out what they screw up but if I horse around with Sharing, Media Server enables, firewalls, and malware blockers I can usually get it working again, but not for the last 2 months at all.
I can't even access the PH web site from the "web" icon in the link icons at the top of the PH desktop window.
Any thoughts, on what it might be? From another computer on my network I can view a .jpg file in the web folded of PH, but can not execute any .html files.
VERY frustrating.
__________________ Ken B - Live every day like it's your last. Eventually, you'll get it right!
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: April 11 2022 at 17:34 | IP Logged
|
|
|
Ken,
I did not get a chance to look very deep into the web scraping issue. I'll look for the post and see what I can come up with.
Concerning the webserver, Im not sure why that would be. I have Windows updates turned off on my PH machine so Im probably not a good litmus test but I would
suspect it has something to do with the firewall and such. The fact that you can pull a .JPG file tells me the webserver is working so not sure why it wouldnt
pull a .HTML file unless some Microsoft security (or 3rd party) is kicking in.
Im still running Windows 7 but I imagine you may be on Windows 10 if you're getting that many updates. I wouldnt rely on the web icon in the PH toolbar as that
is still using the Internet Explorer activex control which is probably going to completely stop working in June if I have my dates correct. I have it on my
todo list to rewrite it using the new Chromium control that is now available in PowerBuilder.
A few things to try though with your webserver. In the pwrhome.ini file under [WebServer] section, there are a couple of relatively new parameters
webservertype and webserveroptions. The default is webservertype=2, webserveroptions=1 and that will change the webserver to using a new webserver activex
control that I wrote using Visual Studio. It's what I use in my setup but I know some people were having some problems. The old, original webserver which uses
a Catalyst socket control is available by setting both webservertype and webserveroptions to 0. Remember, anytime you make changes to the INI file, you'll need
to save and either restart or reinit PH.
The last thing you can try is setting the webservertype=1. This is using a Catalyst Internet server control. I didnt think it worked very well but some users
say it's what works the best for them. In any event, the problems may be related to one or more of the controls not being properly registered or potentially
blocked by MS or a 3rd party so I would give all 3 types a go. If the problem is still the same with all 3 options and you cant access the webserver from the
PH machine itself, it's almost certainly something to do with MS security, firewall, or a 3rd party app. I would first start with 1 by 1 disabling 3rd party
apps such as anti-virus and the like. Work your way up the firewall. Not sure if the Windows eventlogs will have any information but it wouldnt hurt to check.
Hope this helps,
Dave.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: April 11 2022 at 17:40 | IP Logged
|
|
|
Ken,
Just thought of some other possibilities. Check your pwrhome.ini file under the [WebServer] section and see how far off your settings below are from mine:
AUTHMODE=1
COOKIEPERSISTDAYS=30
ENABLEWAP=NO
WEBSERVERUSESSL=NO
WEBSERVERCERTNAME=
WEBSERVERDIRECTORY=c:\powerhome\web
WEBSERVERALLOWGUEST=NO
WEBSERVERSECPSP=2
WEBSERVERSECHTM=0
WEBSERVERSECGIF=2
WEBSERVERSECJPG=2
WEBSERVERSECOTHER=2
TRUSTEDIPS=127.0.0.1;192.168.0.*
BLACKLISTIPS=
ENABLESMARTNEXTURL=NO
ENCODING=UTF-8
headerincludefile=c:\powerhome\headerinclude.txt
ccheaderincludefile=c:\powerhome\ccheaderinclude.txt
ccmapheaderincludefile=c:\powerhome\ccmapheaderinclude.txt
You can see that the WEBSERVERSECJPG parameter is set to 2 which means that no login to the PH server is necessary. The WEBSERVERSECHTM=0 means that you
must have admin (not guest) access in order server HTM files and I believe the internal CGI. Also check that you don't have BLACKLISTIPS that might be
preventing access.
Dave.
|
Back to Top |
|
|
|
|