PxPlus User Forum

Twitter Twitter Twitter

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.


Messages - Allen Miglore

Pages: 1 [2] 3
16
Programming / Re: iMAP4
« on: October 22, 2019, 08:05:42 PM »
You can scan the main headers of the message for a content-type header with a boundary=string value.  That string, with a "--" prefix, delimits the parts of the message.  And the very end of the message both a prefix and suffix value (--string--).  If you just want the first part, typically the text message, you can just watch for the second part and exit.  I would write some whole messages out to files to see how they are structured.

Here is a sample of what it might look like:

Content-Type: multipart/alternative; boundary=f64af71f2a384073bb33579fd1ecabfd

The various parts of this message have a line "--f64af71f2a384073bb33579fd1ecabfd" at the start.

Note you can also speed up string appends with the += operator.  Line 3130 could be: message$+=x$.

17
Programming / Re: Determining Printer from Print Channel
« on: September 25, 2019, 10:40:58 AM »
Does pth(chan) help?

18
Programming / Re: [TCP] open fails, but curl works
« on: August 20, 2019, 10:22:35 AM »
When we install UnForm, we generally have to create the generic libssl.so and libcrypto.so symlinks pointing to whatever the installed version is, if they aren't already there.

My guess would be there is a bug in the older 1.0.1e builds on S1/S2.  You could try 'yum update libssl' and see if that helps.  If they are the same levels of redhat as S3, you might be able to just copy the 1.0.1e files, though I'd sure back up the current ones first.

19
Programming / Re: [TCP] open fails, but curl works
« on: August 20, 2019, 08:59:44 AM »
Here is an example CentOS system, where we created the libssl.so link.  There is also an equivalent libcrytpo.so link.

[root@demo lib64]# ls -l /usr/lib64/libssl.so*
lrwxrwxrwx 1 root root     16 May  2 15:48 /usr/lib64/libssl.so -> libssl.so.1.0.2k
-rwxr-xr-x 1 root root 470360 Mar 12 10:12 /usr/lib64/libssl.so.1.0.2k
lrwxrwxrwx 1 root root     16 May  2 15:47 /usr/lib64/libssl.so.10 -> libssl.so.1.0.2k

20
Programming / Re: [TCP] open fails, but curl works
« on: August 19, 2019, 06:53:24 PM »
Are there symlinks pointing to older libssl/libcrypto .so files?

21
Programming / Re: [TCP] open fails, but curl works
« on: August 19, 2019, 04:53:35 PM »
We've been hearing lately of some web services requiring tls 1.2.  From the message, it sounds like it might be that sort of restriction.  Don't remember if v12 supports 1.2.

22
Programming / Re: Writing CSV files
« on: July 03, 2019, 12:20:30 AM »
Quotes in csv columns should be ignored by reading applications.  Their purpose is just to hide commas in strings.  So does it matter?

23
Programming / Re: Diagnosing error 17 on dim load of json data
« on: May 29, 2019, 03:55:39 PM »
Thanks, Mike.

24
Programming / Diagnosing error 17 on dim load of json data
« on: May 29, 2019, 03:03:22 PM »
I am trying to parse a fairly large json response from a web service, and just installed the very latest pxplus 2019 to test with. 

Scanning the json string as best I can visually (it's about 2.5mb), I don't see anything but simple json objects, arrays, strings, and numbers (no nested arrays, for example, which have caused errors for me before).  The json does pass validation at jsonlint.com.  But I get an error 17 when trying to use 'dim load' on it.

Is anyone aware of a system variable or tcb() function or whatever that would provide any hint about where in the string the error occurs?

If anyone wants to look at the json, it is here:

https://unform.com/download/test.05292019.json


25
Programming / Re: XML Parser - Find Node based on Attribute Value
« on: March 29, 2019, 12:06:50 PM »
We have a similar attribute search functionality in the UnForm xmlreader object, which internally is using the pxplus xml() function.  If the customer has UnForm, like a lot of yours do, you could write a simple job that uses that object.

26
Programming / Re: XML Parser - Find Node based on Attribute Value
« on: March 29, 2019, 11:03:05 AM »
You can use the xml() function to loop through the xml nodes, and the attribute nodes as well.

 open (unt,isz=1)"test.xml"
 read record (lfo,siz=9999999)xml$
 close (lfo)
 let ofs=0
 let xml1$=xml(next from xml$,ind=ofs,key=tag$) ! get first level xml
 let ofs1=0
 while 1
 let xml2$=xml(next from xml1$,ind=ofs1,key=tag$,opt=prop$,err=*break) ! loop through tags 
 let propofs=0
 while 1
 let propval$=xml(property next from prop$,ind=propofs,key=propname$,err=*break) ! loop through attributes until Name="Shape"
 if propname$="Name" and propval$="Shape" then let found=1; break
 wend
 if found then break
 wend
 print xml2$

27
Programming / Re: Where is pxserver?
« on: December 24, 2018, 09:20:59 AM »
Thanks, Chris.  No, I was not aware of that download location.

28
Programming / Where is pxserver?
« on: December 20, 2018, 01:42:02 PM »
I must be blind, but I'm not seeing the download for pxserver anywhere on the pvxplus.com download pages.  Can anyone point me the way?


29
Programming / Re: ZPL II Programming in PxPlus
« on: December 18, 2018, 05:12:43 PM »
I don't have a print program (that would be our product, UnForm), but I've attached a sample of output from it.

Hopefully this will help.

-Allen

30
Programming / Re: QR codes
« on: October 23, 2018, 09:45:50 AM »
Devon, is that utility documented?  I don't see it in the pxplus manual.

Pages: 1 [2] 3