PxPlus User Forum

Twitter Twitter Twitter

Recent Posts

Pages: [1] 2 3 ... 10
1
Language / Re: Detecting Multi-Segment Split File
« Last post by Mike King on February 03, 2023, 10:40:44 AM »
James

What exactly are you looking for? 

Are you try to use multi-segment files to extend the maximum file size beyond 2GB while keeping all segment under the 2GB so older file systems can support the files.

Or are you looking to use the file splitting functionality that will allow you control which data goes to different files.
2
Language / Re: Detecting Multi-Segment Split File
« Last post by James Zukowski on February 02, 2023, 05:08:40 PM »
Thanks, but i don't know if that will help us...
Is there a way to determine if a file is a segment in a segmented file? That's what's being provided by the fin(lfa,"Filename") to our embedded io routine. We only need the base filename, not the actual segment name.
3
Programming / Outlook Appt or Meeting
« Last post by Jeffrey Ferreira on January 30, 2023, 01:15:51 PM »
Has anyone ever been able to send an email via *web\email to create an Outlook Meeting or Appointment?
Not sure if it is even possible.
jeff
4
Language / Re: Detecting Multi-Segment Split File
« Last post by Loren Doornek on January 27, 2023, 06:34:53 PM »
You can get the number of segments from the file header, as long as it's not an EFF file.

OPEN INPUT(1,ISZ=1)"MY_FILE";READ RECORD(1,SIZ=256)R$;CLOSE(1)
SEGMENTS=DEC($00$+MID(R$,249,1))
PRINT SEGMENTS
5
Language / Potential problem in multifile.pvc
« Last post by James Zukowski on January 27, 2023, 06:08:13 PM »
While testing/preparing to use split files, I ran into a situation with an embedded io routine. In multifile.pvc, the Do_Pre_Write routine does its thing until it gets to:
Code: [Select]
if IoType=1 then write lock record (Chnl[_Found_chnl],key=_key$)_rec$ else write lock record (Chnl[_Found_chnl])_rec$
!
if and(_opt,64)=64 then gosub Extract_Update else extract release (lfa); gosub Extract_Free
Our embedded io routine does some post-write processing. This is called by the write lock record directive. It opens a reference file, reads it, then closes it. (There may also be some additional writing, based on results of this read.) Since _opt is 0, the next code line tries an extract release for lfa, but lfa was not the Chnl[_Found_chnl] in the write line. Changing lfa to Chnl[_Found_chnl] in the extract release line works fine in this situation.

However, there are other references to extracts and lfa elsewhere that I haven't gone through yet. These may be affected by post-read and post-write routines in embedded io routines.

Thought you'd like to know...
6
Language / Detecting Multi-Segment Split File
« Last post by James Zukowski on January 27, 2023, 05:17:39 PM »
Is there a way to determine if a file is a multi-segment split file? We've got embedded io routines that do additional work based on a file's name. We're looking at splitting some of our larger files.
We would like to be able to parse out the base filename only, rather than have the full path and segment ID included. Being able to determine when to do the additional parsing work would certainly help.
Thanks!
7
Web Services / Re: *plus/web/request with Proxy server
« Last post by Mike King on January 27, 2023, 01:33:13 PM »
For Windows you can often simply replace the call to *plus/web/request with a call to *wininet. 
The calling parameters a basically the same:

   url$, postdata$, response$, header$, mimetype$, extraheaders$

It will use the Windows proxy settings.
8
Web Services / Re: *plus/web/request with Proxy server
« Last post by Bruno Biancucci on January 27, 2023, 11:45:51 AM »
I'm by no means an expert on the matter, but I do use request program all the time.  For the most part in stock form, it does a good job.  You can open this program and adjust it or a copy.  I had a case where I had to pull images from a remote site and request didn't quite work right with the expected payload, so I made a very small adjustment to the code and it's been flawless.  In another case, I wanted more details like timing and raw data being sent/received, so I added a log file; which turned out to be very help full.
I'm not sure about proxy details, but if this information needs to be included in the HTTP header, check out the "extrahdrs$" field.  I have to use this from time to time if certain credentials need to be passed to the server.
9
Web Services / *plus/web/request with Proxy server
« Last post by Mark Brown on January 27, 2023, 09:54:09 AM »
Are there any plans to enhance *plus/web/request to work with a proxy server that requires a PEM file, username and password?

It would act similar to this curl command with JSON data:
curl <destination url> --cacert <filepath of PEM file> -x https://<username>:<password>@<proxy server url> -H "Content-Type: application/json" -d "<json data>"

Thanks
Mark Brown
10
Programming / Re: Drag and Drop
« Last post by Thomas Bock on January 26, 2023, 03:46:23 AM »
Mike

Thank you. I'll take a look at it.
Pages: [1] 2 3 ... 10