I haven't had any time, very busy week, but I finally dug up BR 4.2 release notes where some HTTP client documentation lives.
Coincidentally, I need to write a BR program that involves HTTP client using GET and POST to talk to a web server. So I will try to post an example asap.
Search found 87 matches
- Fri Jan 13, 2017 7:06 pm
- Forum: Advanced Concepts
- Topic: Anybody written a JSON Parser?
- Replies: 21
- Views: 40794
- Sat Dec 17, 2016 5:22 pm
- Forum: Advanced Concepts
- Topic: Anybody written a JSON Parser?
- Replies: 21
- Views: 40794
Re: Anybody written a JSON Parser?
I don't have a sample of using http=client, but I do have samples of uploading text and/or JSON data to a BR web server via POST, as well as getting data from a BR web server via GET. This is not the same as what you asked for, so not sure if this helps any. But if you are interested, I'll dig aroun...
- Tue Dec 06, 2016 10:17 pm
- Forum: Advanced Concepts
- Topic: Anybody written a JSON Parser?
- Replies: 21
- Views: 40794
Re: Anybody written a JSON Parser?
This what the JSON looks like in "pretty" print: { "Level":1, "oper":41, "opername":"MZ", "codes": [ 10, 4, 32, 65 ] } The initial opening curly brace { means that we are looking at an object. On the contrary, "codes", a "key...
- Tue Dec 06, 2016 10:10 pm
- Forum: Advanced Concepts
- Topic: Anybody written a JSON Parser?
- Replies: 21
- Views: 40794
Re: Anybody written a JSON Parser?
00001 dim Keys$(0)*255,Values$(0)*255 00002 dim Json$*30000 ! Max Allowed By Fnparse_Json 00003 library 'web_server': Fnparse_Json 00004 ! 00005 ! Note That Inside This Json, "codes" Is An Array Of Values 00006 let Json$ = '{ "Level":1, "oper": 41, "opername":...
- Wed Mar 02, 2016 9:53 am
- Forum: General Development
- Topic: Client/Server STARTDIR bug
- Replies: 1
- Views: 11432
Client/Server STARTDIR bug
I found a Client/Server STARTDIR bug: If your STARTDIR path contains spaces, you will get a 10054 error described here: http://brwiki2.brulescorp.com/index.php?title=10054 Putting quotes around the STARTDIR path does not remedy the problem. Here are some examples: logfile=C:\MyCorp\BR\brlistener_log...
- Mon Jan 11, 2016 11:52 am
- Forum: General Development
- Topic: Accurate "non-deleted" record count
- Replies: 10
- Views: 21250
Re: Accurate "non-deleted" record count
I tried both John's approach and Gordon's approach. They both work and they both took about 0.04 seconds for a 50 MB file with 35000 records. Both approaches are MUCH faster than reading it the way I was doing it with KEYONLY - that took 0.4 seconds, 10 times slower! I guess using KEYONLY makes sens...
- Mon Jan 11, 2016 10:22 am
- Forum: General Development
- Topic: Accurate "non-deleted" record count
- Replies: 10
- Views: 21250
Re: Accurate "non-deleted" record count
There are 2 problems with this function: 1) it only works with keyed files (but that's OK for me because most files I work with are keyed) 2) The way I generate the form statement assumes that the key spec is 'C', so if the key is actually N or B, or some other spec, it won't work I think. "for...
- Mon Jan 11, 2016 9:54 am
- Forum: General Development
- Topic: Accurate "non-deleted" record count
- Replies: 10
- Views: 21250
Re: Accurate "non-deleted" record count
You mean like this? It DID turn out to be faster... !-------------------------------------------------------------------- def library fnrecordsinfile (flname$,kfname$;___,keyform$,datafile,nextkey$*100,nextrec) library 'fileio' : Fngetfilenumber open #datafile:=Fngetfilenumber:'name='&flname$&am...
- Mon Jan 11, 2016 8:52 am
- Forum: General Development
- Topic: Accurate "non-deleted" record count
- Replies: 10
- Views: 21250
Accurate "non-deleted" record count
I want to write a function to give me an ACCURATE record count in a keyed BR file, NOT counting deleted records. We know that LREC counts deleted records and we can't always perform a COPY -D to purge the deleted records in a multiuser environment, as the file might be locked. So instead, here is th...
- Thu Nov 05, 2015 7:27 pm
- Forum: General Development
- Topic: DIR command truncates long file names
- Replies: 1
- Views: 11223
DIR command truncates long file names
In BR when you redirect the output of the DIR command to a file, file names longer than 30 characters get truncated. Is there a workaround for this? I am working with a large set of files with all kinds of very long names (30 to 50 characters on average), and need to be able to read these names in B...
- Fri Aug 29, 2014 1:14 pm
- Forum: General Development
- Topic: Windows 2008 server and 4320 error
- Replies: 3
- Views: 9426
Re: Windows 2008 server and 4320 error
When you all disabled SMB2, did you switch down to SMB 1.5? Or SMB 1.0? I seem to still have problems getting kicked out of BR with no error message even after switching from SMB 2 to SMB 1.5
- Tue Aug 26, 2014 10:36 am
- Forum: General Development
- Topic: Windows Server 2012 R2 problems
- Replies: 6
- Views: 11089
Re: Windows Server 2012 R2 problems
I take that back. We turned off SMB 2 and are still getting reports of people getting kicked out...
Is anyone else using Client/Server BR 4.31 with a Windows server and Windows clients?
If so, what is your Windows server OS version and Windows client OS versions?
Is anyone else using Client/Server BR 4.31 with a Windows server and Windows clients?
If so, what is your Windows server OS version and Windows client OS versions?
- Fri Aug 22, 2014 3:45 am
- Forum: General Development
- Topic: Windows Server 2012 R2 problems
- Replies: 6
- Views: 11089
Re: Windows Server 2012 R2 problems
When I use "@::" everything works fine, but when I do not, the file doesn't get saved to the server for some reason... On another hand, back to the previous issue: We disabled SMB 2, which seems to have solved the problem with users getting kicked out, but cost us performance-wise... Luis,...
- Wed Aug 20, 2014 9:34 pm
- Forum: General Development
- Topic: Windows Server 2012 R2 problems
- Replies: 6
- Views: 11089
Re: Windows Server 2012 R2 problems
Thank you, Luis, I will try this solution... On another note, I am using PDFLIB.dll to print to PDF, and it works fine for regular BR, but NOT in Client-Server. Here is my open statement: open #255: 'name=PDF:/Adobe PDF,PrintFile='&save_name$&',recl=1000',display,output In non-client server,...
- Thu Jul 31, 2014 12:49 pm
- Forum: General Development
- Topic: Windows Server 2012 R2 problems
- Replies: 6
- Views: 11089
Windows Server 2012 R2 problems
We are having problems using Windows Server 2012 R2 with BR - errors mainly related to file input/output, network errors, record locking and file locking. I've tried both Client/Server and non-Client/Server versions of BR. I've also tried BR versions 4.2, 4.3, and 4.31 - none of them are working wel...