NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Bruce

Pages: 1 [2] 3 4 ... 9
16
Web Server - Share Knowledge / OpenSSL 1.0.1j DLL's
« on: October 21, 2014, 06:54:06 AM »
Hi All,

It's good to keep up to date. The OpenSSL 1.0.1j DLL's are attached.

cheers
Bruce


[attachment deleted by admin]

17
Web Server - Share Knowledge / Web Client Error / SSL Email Client error
« on: October 21, 2014, 04:21:03 AM »
Hi All,

There have been several reports from WebClient object users who are suddenly getting this error in their programs;

Error Code: -53
Error Message: The requested connection could not be opened. The Open
command timed out or failed to connect.
The error number was -53 which means Open Timeout or Failure error. - [SSL Error = 16]

This occurs when the web server you are talking to will no longer accept SSLv3 connections, and require you to use TLSv1 (or later) connections.

Because of the POODLE bug many servers have indeed stopped accepting SSL 3 connections.

You can update your object by setting;

ThisWebClient.SSLMethod = NET:SSLMethodTLSv1

Alternatively you can change the default, as set in netsimp.clw so that all WebClient objects are affected. (The default has been changed for builds 8.29 and later.)

netsimp.clw
NetSimple.Init method
change the line
self.SSLMethod = NET:SSLMethodSSLv3
to
self.SSLMethod = NET:SSLMethodTLSv1

update : While it mostly manifested as a Webclient issue, this above issue can affect and program that comminucates with a server via SSL. In other words it might be email, or ftp, or whatever. The solution though is the same, since SSLMethod is a property of the NetSimple base class.

Cheers
Bruce Johnson
CapeSoft



18
Web Server - Ask For Help / Re: Best place to process a URL parameter
« on: October 07, 2014, 10:15:22 PM »
[ reposted here as the other thread is too long]

Hi Bruce

I have removed the code in 'NewSession' that related to the URL parameter.

The problem persisted and I did more testing.  The situation in the code now is:

The parameter (bparm) is not initialised
bparm is set via: p_web.StoreValue('bparm') in the ProcessLink Procedure
bparm is not altered in any other code

The assumption in the above code is that if the parameter exists then the session variable 'bparm' is stored via StoreValue and if it is not present then it is blank.  Another assumption is that if it was present at the start of a session then the session variable remains at the initial value even when the URL changes. 

Well, it looks to me as if this is not always the case.  When starting the session with ?bparm=bill I included the following in ProcessLink:

  stop('b4 store='&p_web.GSV('bparm'))
  p_web.StoreValue('bparm')    !save any URL parameter
  stop('after store='&p_web.GSV('bparm'))

The result is that frequently the first STOP displays 'bill' and the second displays blank.

I say 'frequently' because the ProcessLink procedure is executed a lot  and sometimes I correctly get bill/bill and sometimes bill/blank.  Sometimes I get bill/blank then blank/bill.

Now, once bill becomes blank my file path names get screwed up.

Of course, as noted before, if I execute without the parameter everything is ok because the pathname is being set thru a login procedure which is not dependent on the parameter.

It looks to me as if the problem is in StoreValue which sounds crazy I know but I cannot get any more granular in my investigation.

Your sage thought appreciated as always.

Keith

19
Web Server - Ask For Help / For Brian : Application gone mad
« on: August 05, 2014, 09:46:34 PM »
I have followed your multiple threads with interest Brian, but unfortunately you seem to be floundering under loads of good advice, but not necessarily following each thought through to it's conclusion.

First, I think you need to isolate any specific problems that you have, and then tackle them one at a time until they are correctly solved. The root of a problem can be far from the visible symptom and hence one problem can manifest in multiple ways.

With regard to your filter problem -
as far as I can see you have not posted an example of debugview output which contains the filter, where you feel the wrong filter is being applied.

I suggest we start there.

Cheers
Bruce

20
Web Server - Ask For Help / GPF on Server Exit
« on: May 21, 2014, 12:51:52 AM »
Hi Bruce,

I'm getting a GPF when I exit the WebServer app:

Code:

Program : D:\FutureIT\kwiklook\WebServer\klws.exe
Version : 5.0.0.243
At : 18:15:57 on 2014/05/21
Workstation: : AUCLYKWIK01
User Name: : futureit
Reported error : EXCEPTION_ACCESS_VIOLATION - Error reading data at : 00000018h
Windows : Win 2008 R2-, Terminal Server 6.1.7600
Clarion : 0.801
Thread : 1    Field : 0    Event : 0    Keycode : 1
Error at address : 00254E24h  no debug info, Module=D:\FutureIT\kwiklook\WebServer\ClaMSS.dll 8.0.9759
Stack Trace
??? 01010FD3h    Line ?=4900    no proc       Src=xFiles.clw
??? 004D5248h    Line=1834    Proc=TAKEBROWSEEVENT@F17HNDFILELOADBROWSE  Src=HNDFLBRW.CLW
??? 010800CEh    Line ?=4900    no proc       Src=xFiles.clw
??? 0141B07Ch    Line ?=26    no proc       Src=wxeh.cpp    Module=D:\FutureIT\kwiklook\WebServer\ClaRUN.dll 8.0.9759
??? 0141B07Ch    Line ?=26    no proc       Src=wxeh.cpp    Module=D:\FutureIT\kwiklook\WebServer\ClaRUN.dll 8.0.9759
??? 0141B07Ch    Line ?=26    no proc       Src=wxeh.cpp    Module=D:\FutureIT\kwiklook\WebServer\ClaRUN.dll 8.0.9759
??? 005164ACh    Line=170       Proc=ADDITEM@F18CSHYPERACTIVECLASSlOsbOlOlOll  Src=Hyper.Clw
??? 00E15A48h    Line ?=4900    no proc       Src=xFiles.clw
??? 005164CFh    Line ?=170    no proc       Src=Hyper.Clw
[01] 77999F02h    no debug info, Module=C:\Windows\SysWOW64\ntdll.dll 6.1.7600.16385 (win7_rtm.090713-1255)
[02] 77999ED5h    no debug info, Module=C:\Windows\SysWOW64\ntdll.dll 6.1.7600.16385 (win7_rtm.090713-1255)
??? 005164ACh    Line=170    

>> I don't know why there is a Handy Browse line in there, there are no Handy Browses in the app at all! The app does have the global Handy Tools included.

Regards,
Trent

21
Web Server - Ask For Help / 8.11 Maps error
« on: May 18, 2014, 11:06:31 PM »
Hi All,

There's a bug in the jquery.nt-maps.js file which shipped with 8.11. This has been fixed for the 8.12 build. However as that may be some days away, I've posted the updated js file(s) with this note. If you want/need to apply this then;

a) unzip the attached file into your \clarion\accessory\libsrc\win\netweb\web\scripts folder.
b) in your app folder run the "copyall.bat" and "gzipall.bat" files which are there.

Sorry for the inconvenience.

cheers
Bruce



[attachment deleted by admin]

22
E-Mail - Ask For Help / Re: 8.09 ImageMap
« on: May 12, 2014, 07:35:54 AM »
Hi Alberto,

please post your most recent post again (this time in this thread.)

cheers
Bruce

23
Web Server - Ask For Help / 8.09 mobile chars
« on: April 30, 2014, 02:01:38 AM »
Thread continues;

>> I simply can't do this.
>> When you promote a site you simply tell the user an URL plain and simple
>> www.doctoranyplace.com.ar
>> I can't tell the user to type or to use
>> www.doctoranyplace.com.ar/index.html

I completely agree. I never said you would. I said
a) put index.html in the web folder.
b) set the "Default Page" setting to be 'index.html'

>> I need the server to serve an initial static web html site to show how the site works and then from some page go to the dynamic Login page to begin to work.

exactly. You're not exactly the first person to come up with this approach. Crumbs, even www.capesoft.com does this. If you do the two steps above then it works.

Cheers
Bruce



24
News And Views / Webinar User Group Update
« on: April 18, 2014, 01:43:02 AM »
Please note:
There will be no NetTalk User Group this coming Thursday, April 24 2014. There is a ClarionLive SQL CAT happening at the same time, so the next User Group will take place on May 1 at 3pm UTC / 5pm SAST / 11am EST, 8am PST.

Also

The User Group webinar will no longer be at alternating times - it will remain every week at the time mentioned above.

Of course after-the-fact downloads (and show notes) can be downloaded from http://www.capesoft.com/accessories/NetTalkUserGroup.htm

Cheers
Bruce

26
Jim posted this question to the Webinar today - we didn't get to it though, so I'm posting it here. Answers to follow;
----------------
Hi Bruce: I am trying to use a website template with NTWS.  I have htm files for header and footer. I have added the CSS and js files to the webserver.

1. Does the js declared in the header automatically cascade to any pages that use that header?

2. On Inventory pages, I only need a table between the header and footer.  The template displays a 4 four column portfolio. All I want is for NT to generate the data for the table, plug in the right formatting, and do its magic.  What confuses me are the extra divs that are created and how and where these can be over-ridden.
I watched webinar 217. Is there a webinar in using NTWS with a website template set, as from Themeforest, etc?  I can provide a template if needed.

27
News And Views / Calling Australians / New Zealanders...
« on: February 17, 2014, 05:56:50 AM »
Hi Guys,

This post is for all those folks in a "high +GMT time zone".

As you may have noticed we started this year with a new weekly webinar, called the NetTalk User Group Webinar. It's all thanks to the kind folks at ClarionLive who have provided all the facilities for doing it, and encouraged me to do it at all.

One of my goals though was to make the webinar accessible to everyone, regardless of time-zone. To achieve this I do the webinar in alternating time-slots every week. One week the time is friendly for GMT-x people, and the other week it's friendly to GMT+x people.

This means that for people "on the right" this is the first Clarion webinar which occurs at a reasonable time. You've probably not got into the habit of attending webinars, and so you may not have noticed this seminal event. The point of this post is to give you every opportunity to participate in these user group meetings.

The meetings themselves are very informal. I do next to no preparation work, and while I usually have a tip or two lined up, most of the time is driven by attendees asking questions and getting answers. If you're not sure what I mean then I urge you to download and watch the one from last week, which you can find here;
http://www.capesoft.com/accessories/NetTalkUserGroup.htm

As you can see from that page, the "GMT-" user groups are very well attended, and folks there are getting into the habit of coming with questions to ask. I'd like to see the same demand from the GMT+ folks in order to justify the split-time approach.

So what can you do;
a) Make sure you are registered (https://www3.gotomeeting.com/register/743469854)
b) Join us this week - we're on at Thursday 5AM GMT.
c) Bring questions! there's no such thing as a bad question, and we need questions from beginners, intermediate and advanced years.

See you there

Cheers
Bruce

28
I was having an interesting conversation with Chuck, who needed to post a file up to a server. The process seemed simple enough, it's a long-standing requirement, create a form, add a File Upload field and so on, but it just didn't work.

After examining the server for a bit I realized that it's not the code which is wrong, it's the approach. The Form procedure has grown up over the years, and while it's possible to "drive" the form automatically, it's also more complicated now because a form expects to go through a number of stages. You'd have to make at least two calls, the first to generate the form, the second to do the POST while at the same time preserving the Session Cookie, and FormState value. It's do'able, but seems like a lot of work.

Fortunately there's an easier way.

If you create a NetWebPage, rather than a Form, then you can simplify things a lot, because a Page is parsed exactly like a form (so all the fields are available for you to use) and a page doesn't have the inherent "expectations" that a form has.

On the sending side, Chuck has based his sender on the example "Examples\NetTalk\WebClient\Web Client Send File\websend.app".

That contains the following code;

   net.SetValue('whatever',something)
    net.SetValue(FieldName,FileName,true)
    net.Post(URL,'')    


As you can see any number of fields can be included in the post, and disk files can be included.

On the server side, if the procedure is a NetWebPage, not a NetWebForm, then any embed code can be added to do whatever you like with the fields. The contents of the simple text fields are in

p_web.GetValue('whatever')

and the incoming files can be saved by doing

p_web.SaveFile('fieldname','name on disk')

The name of the file being sent, _including_ the path of the sender machine is in

p_web.GetValue('fieldname')

StringTheory has a method called FileNameOnly that strips off the path. So putting it all together, let's say the name of the incoming field is 'FileFromClient' then the code to save the incoming file, into a directory called c:\temp\incoming looks like this;

str  StringTheory

...

  str.SetValue(p_web.GetValue('FileFromClient'))
  str.SetValue('c:\temp\incoming\' & str.FileNameOnly())
  p_web.SaveFile('FileFromClient',str.GetValue())



Cheers
Bruce







30
>> Meanwhile they gave me a one time certificate for an "outside of process" usage and I could successfully retrieve the pending emails via Thunderbird portable.
So the certificate cannot be the prob, they use JKS, with NT I use PEM, Thunderbird uses PKCS (the last two I converted from the base JKS).

The certificate is not the problem. If SSL was not working you'd get nothing in the conversation.


>> The response mails are formal and of type "message disposition notification" (MDN) according to RFC 3798, thus:  content-type "multipart/report" with report-type "disposition-notification". Are ringing the bells maybe ?

clearly this is not a problem (not yet anyway), because there's no mail body being collected.

Cheers
Bruce

Pages: 1 [2] 3 4 ... 9