CAB.OVL is a networking interface layer for use with CAB. This release is compatible with any STiK conforming TCP/IP layer, which meets the STiK standards.
CAB_OVL now comes in 2 flavors (*again*) they can be found in their respective folders in this archive.
Many changes are in place and more are on the way. Enjoy!
PUT is the http method for uploading files. Not all servers support it. In fact many have this turned off. However there are still a large number of sites that do allow it. If you are lucky enough to have one as your web site it can save you a bit of time launching seperate applications. Simply "test" your page in CAB and if you like it, "PUT" it up to your web site.
How to use PUT. Go into the open url dialog. Now type "put http://www. mywebsite.com/~me/file_to_upload". You must put "put http" or "PUT HTTP", this is what the CAB.OVL scans for to use this function. And this is a process that's all done on the OVL side. CAB goes along with it kicking and screaming ;)
After setting this command in the "Open URL" box, you will be presented with a file selector. If you select a file that file will be sent to your web server. The file you select need not be named the same as what you typed into the "Open URL" dialog. example you could type: "put http://www.mysite.org/~me/cool.zip", but the file you select to send might be named "a49zb.zip". On the web server it will be named "cool.zip".
If you web server supports PUT, the file "file_to_upload" (insert your file name in place of this) will be stored in your web directory. If your server does not support PUT, you will be prompted with a "Method not allowed" form alert.
If you are using the POST variant (egroups does this), then you will simply be presented with a fileselector after filling out the form on the web page. In all other respects the variant behaves the same as the PUT method above.
These are set in the default.cfg or with an appropriate program that modifies STiK variables.
(Quite a few eh? Bet you didn't know all that was there ;)
There are 4 types of errors you might encounter during the use of CAB, with this CAB.OVL:
#-36 - Connection Failed. The site may be too far away, or network trafic to high at the current time.
#-39 - No memory. Requested action can't be preformed as STiK is out of memory.
#-65 - Bad SYN. This is another error you shouldn't encounter. But might pop up.
#-300 - Bad Connection handle. The OVL has gotten confused somewhere and is trying to use a non existant connection. You shouldn't encounter this.
#-307 - No name server. CAB.OVL can't function as it can't resolve any sites, due to the lack of a nameserver. This is a misconfiguration of STiK, or a STiK corruption problem.
#-309 - Bad DNS format. CAB.OVL can't resolve the site with the given site name.
#-311 - This is a general purpose network error. Due to some problem with the site name, CAB.OVL can't retrieve the requested URL.
#-312 - Network Down - Lost Carrier. You are no longer connected to the network.
#-313 - The site is unreachable. It's offline or you are or both. This also happens during high net trafic when it is impossible to get a connection to the site.
#-314 - The other end has sent an unacceptable packet, we are forcing a reset.
#-315 - Abort due to user action. This should only occur in one of the following 3 circumstances.
2. You have pressed the 'esc' key.
3. The current routine has timed out.
#-316 - The other end has forced a reset on the connection, closing it.
#-318 - CAB.OVL is trying to preform an action on a closed socket.
#-320 - The connection has timed out and closed.
#-321 - The other end has refused to allow you to retrieve the document. This can occur on pages with authentication or with sites that do not allow non-local connections (or conections from too far away ie. another continent) This could also happen when accessing the web through a proxy, that also acts as a firewall.
#-323 - Resolver has reached it's work limit. The CAB.OVL cannot resolve the host for the specific document as it's just too far away/deep for it to get the address.
#-600 - CAB.OVL can not resolve the host for the specified document. When this happens the CAB.OVL will attempt to see if you are still online. If it can not determine your online status, it will prompt the user to "Abort", if the user chooses 'YES', then CAB.OVL assumes it is offline and informs CAB of this status. If the user chooses 'NO', then CAB assumes it is still online and just couldn't resolve the current site.
The CAB.OVL now processes and reports normal GEM errors that it encounters during it's operation.
The ovl: system is used to change the current value of CAB.OVL Config variables.
Entry of ovl:xxx can now be done in URL dialog this will have the following effects
ovl:info - will display current CAB.OVL variable settings and some useful links
It can also be used to change the value of a variable in the formula
ovl:< variable name > < new value >
Spacing IS important. One space between variable name and value (more might work) NO SPACES at end!
example in quotes
"ovl:http1 1"
This would set the http1 variable to ON.
#
# Lines started with # are Remarks
#
# FAKE_NETSCAPE
# 1 - Fake a mozilla entry as the browser
# anything else remain normal CAB.OVL entry
# Default value is off, normal CAB.OVL entry
#
FAKE_NETSCAPE = 1
#
# SHARE_TIME
# amount of time in msec that the OVL returns to CAB during the OVL's
# operation. Like all GEM calls this is the minimum time returned.
# It's Default value is 100 msec
#
SHARE_TIME = 20
#
# ONLINE
# determines how the CAB.OVL will work with you on determining it's
# online status, if it's unable to.
#
# 0 - 'Always Online' - The OVL relies entirely upon the errors returned
# from the stack to determine online/offline status. It will
# never question you as to it's status or attempt to determine
# it's online status.
#
# 1 - 'Use Abort Alert' - If you are having problems with with the CAB.OVL,
# when it is launched by CAB, try using this setting. CAB.OVL
# will attempt to determine it's online/offline status by using
# routines in the TCPIP stack. If it's unable to determine it's
# status, you will be prompted with the 'Abort' alert. If you
# answer 'Yes' you are online, if you answer 'No' you are offline.
# Not pretty but hopefully will get around a problem call on
# systems that are experiencing this bug.
#
# 2 - 'Use Online Alert' (This is the default value if ONLINE is not set)
# If the CAB.OVL can not determine it's online/offline status
# It will prompt you with 'Online?'. Answer 'Yes' if you are
# and 'No' if you are not.
#
# Using value 1 or 2 is preferable to 0 if you can in your situation,
# as there are some errors that are not 100% black and white, knowing it's
# status helps the OVL determine what actions to take in certain situations.
#
ONLINE = 2
#
# TIMEOUT
# amount of time in seconds that you wish to wait before time out's occur on
# connections
#
# Default is 120
#
# **** WARNING **** Do not make this value too small
#
TIMEOUT = 120
TIMEOUT = 120
#
# POSTGET
# determines how the CAB.OVL handles redirections after a POST
#
# 0 - Prompt user to decide to GET, POST or Cancel
# 1 - GET the resulting file
#
POSTGET = 1
#
# HTTP1
# determines if OVL will act as an HTTP 1.1 client or not
#
# 0 - act as http 1.0
# 1 - act as http 1.1
#
HTTP1 = 1
Note: This version of the CAB.OVL uses an internal CAB call that was non existant in some versions of 1.5. So before you delete your old CAB.OVL and replace it with this one. Please test your version of CAB with this OVL. If it doesn't work with your version of CAB you will need to update your version of CAB.
This does not apply to users of the commercial version of CAB.
Thank you,
Dan