PxPlus User Forum

Twitter Twitter Twitter

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Language / Re: ERROR 302 file not found
« Last post by Loren Doornek on March 25, 2024, 02:21:17 PM »
Does it work if you actually include the filename in the URL?

08120  LET R$="GET /download/update/index.html HTTP/1.0"+$0D0A$
12
Language / ERROR 302 file not found
« Last post by edjack on March 25, 2024, 01:50:26 PM »
I do the following [tcp] GET from a web site and get an error 302 (file not found)
Here is the code I am using:
08120  LET R$="GET /download/update/ HTTP/1.0"+$0D0A$
08130  LET R$+="Accept-Language: en-us"+$0D0A$
08140  LET R$+="Content-Type: application/x-www-form-urlencoded"+$0D0A$
08150  LET R$+="Host: www.website.ca"+$0D0A$
08160  LET R$+="Content-Length: "+STR(LEN(PARAMS$))+$0D0A$
08170  LET R$+="Cache-Control: no-cache"+$0D0A$+$0D0A$
08180  CLOSE (1);
       OPEN (1,ERR=*NEXT)"[tcp]www.website.ca;80";
       GOTO 8200
08190  MSGBOX "Unable to connect to the Upgrade Web Site.","Connection Failure","!,TIM=15";
       LET CMD_STR$="END";
       RETURN
08200  WRITE RECORD (1)R$;
       LET RESP$="",X$=""
08210  WHILE 1
08220  READ RECORD (1,TIM=1,ERR=*BREAK)X$
08230  LET RESP$+=X$
08240  WEND
08250  CLOSE (1)

It should bring back the contents of file "index.html" but reports that it cannot find the file.
If I enter the full path to the website and directory in my browser it do get the contents of the "index.html" file.

any ideas on what can be wrong?

13
Programming / Re: accessing mySQL-DB
« Last post by Thomas Bock on March 25, 2024, 04:57:34 AM »
Are there any new insights?
14
Programming / Re: winprt
« Last post by Sam Nehama on March 21, 2024, 05:25:33 PM »
Mike,

I set up a generic/text only printer but nothing ever prints - the lights light up, but no printing.
I also tried using the command you indicated but same thing - lights light up, no printing, no error messages.

Jeff,

I did try the universal driver but it seemed to indicate this needs to be a network printer - and it also indicated it will not work on an MFP printer, which this is.

Thanks,
Sam
15
Programming / Re: winprt
« Last post by Jeffrey Ferreira on March 21, 2024, 03:29:15 PM »
Hi Sam,

We've had a similar problem before.
winprt works fine (using windows print driver)
windev does not work
even though i'm pretty certain windev does not use the windows print driver, we had to change our windows print driver to an HP Universal Driver in order to print pcl or any of those mnemonics you see inside the *dev\hplaser. I dont know why that is but i would give it a try.

Jeff
16
Programming / Re: winprt
« Last post by michaelgreer on March 21, 2024, 03:09:46 PM »
Sam - I'd be interested to know what happens when you enter: open(hfn)"[wdx]"+"*windev*
On that workstation.  This might tell you what issue you are facing. Beyond that, for this use you will need to have the printer configured with a generic/text only driver.  *winprt* interacts (I believe) with the windows print driver.  I don't think your pvx driver is being ignored so much as overridden.
17
Programming / winprt
« Last post by Sam Nehama on March 21, 2024, 02:26:24 PM »
I'm trying to set up a printer specifically for printing checks.  We had modified the hplaser device driver utility to print the checks via a network connection, and this has worked for many years.  The check printer has now been moved out of the office to someone's home, and they only have a VPN connection to the server (Winhost/Winslave) and a USB printer.  I've tried *windev*, and it prints nothing.  *winprt* does print to the USB printer, but it seems to ignore the modified hplaser device driver utility.  For check to line up properly it's important that the codes are sent to the printer from the modified device driver.  Any idea on what I'm doing wrong?

Thanks,
Sam
18
Programming / Re: accessing mySQL-DB
« Last post by Thomas Bock on March 18, 2024, 04:25:53 AM »
The customer uses openSUSE Leap 15.5
We use a Gentoo and can reproduce the issue
19
Nomads / Re: Convert NOMADS file to XML (need IOLIST)
« Last post by pwhirley on March 14, 2024, 08:09:02 PM »
Thank you Jane!

I thought I had already replied to your post, but I don't see it.
I think the *plus/proj/pxpnl program looks promising to come up with a more readable comparison.  Thank you for the suggestion.

Phil
20
Language / Different Listbox Row Heights with Accented Characters
« Last post by James Zukowski on March 14, 2024, 02:21:04 PM »
We have a Report View listbox with 4 text lines per entry. When we include accented characters as part of a line, it breaks the line and we now have 5 text lines (see attached). If I translate the accented characters into un-accented characters, it's back to being a 4-line entry.

Is there an option I'm missing somewhere? Is this something with Windows or PxPlus and listboxes?

Suggestions welcome.
Pages: 1 [2] 3 4 ... 10