61
Web Server - Ask For Help / Avoid downloaded file been served from browser cache (SOLVED)
« Last post by Poul Jensen on May 12, 2025, 12:32:44 AM »Hi,
Using this to download a file:
Works fine first time, but if user later downloads same file, it is being served from internet browsers cache, and therefore not the latest version af the file.
How can I avoid this?
tia
/Poul
Using this to download a file:
Code: [Select]
p_web.HeaderDetails.ContentDisposition = 'attachment; filename="'& CLIP(Loc:DownloadFileName) &'"'
Works fine first time, but if user later downloads same file, it is being served from internet browsers cache, and therefore not the latest version af the file.
How can I avoid this?
tia
/Poul
62
Web Server - Ask For Help / Re: How to set file upload filetypes
« Last post by Niels Larsen on May 12, 2025, 12:17:23 AM »Maybe this is where you should look.
63
Web Server - Ask For Help / How to set file upload filetypes (SOLVED)
« Last post by Poul Jensen on May 11, 2025, 10:49:39 PM »Hi,
Where do I set the filetypes for the filepicker used in the File Upload on a NT form?
tia
/Poul
Where do I set the filetypes for the filepicker used in the File Upload on a NT form?
tia
/Poul
64
Web Server - Ask For Help / Re: Webclient with certificat
« Last post by Jane on May 09, 2025, 04:48:09 PM »ACK!
Sorry, Niels. I thought I had edited those question-marks-that-should-be-dashes.
I pasted text from a PDF I did for a ClarionLive webinar some years back and the rogue question marks blossomed.
Anyway, I hope you got it working.
Cheers,
Jane
Sorry, Niels. I thought I had edited those question-marks-that-should-be-dashes.
I pasted text from a PDF I did for a ClarionLive webinar some years back and the rogue question marks blossomed.
Anyway, I hope you got it working.
Cheers,
Jane
65
Web Server - Ask For Help / Re: Webclient with certificat
« Last post by Niels Larsen on May 08, 2025, 11:32:59 PM »You just made my Friday a great day.
You pointed me in the right direction.
When I couldn't get your commands to work (because I didn't realize that your - was converted to a ?) I found the description at https://www.ssl.com/how-to/export-certificates-private-key-from-pkcs12-file-with-openssl/
What I thought was impossible turned out to be very easy.
THANK YOU Jane!!!
You pointed me in the right direction.
When I couldn't get your commands to work (because I didn't realize that your - was converted to a ?) I found the description at https://www.ssl.com/how-to/export-certificates-private-key-from-pkcs12-file-with-openssl/
What I thought was impossible turned out to be very easy.
THANK YOU Jane!!!
66
Web Server - Ask For Help / Re: Webclient with certificat
« Last post by Jane on May 08, 2025, 08:44:44 PM »Net demo web client is great for testing.
I don't think you'll be able to make it work with the PFX, though.
A PFX contains both the certificate (with its public key) and your secret private key. And it's password-protected.
To split apart a PFX for use with NetTalk, use openssl (it's installed automatically with any of your netweb server projects).
When you use openssl, the first private key file you'll get will be password-protected.
You can also run one more openssl command to produce an unencrypted private key file.
I don't think you'll be able to make it work with the PFX, though.
A PFX contains both the certificate (with its public key) and your secret private key. And it's password-protected.
To split apart a PFX for use with NetTalk, use openssl (it's installed automatically with any of your netweb server projects).
When you use openssl, the first private key file you'll get will be password-protected.
You can also run one more openssl command to produce an unencrypted private key file.
Code: [Select]
Openssl pkcs12 -in MyDomain.pfx -nocerts -out MyDomainEncrypted.key
Openssl rsa -in MyDomainEncrypted.key -out MyUnencryptedDomain.key
Openssl pkcs12 -in MyDomain.pfx -clcerts -nokeys -out MyDomain.crt
67
Web Server - Ask For Help / Re: MObile device (Phone) @media screen and (max-width: 600px) FONT SIZE question
« Last post by Bruce on May 08, 2025, 06:04:41 PM »68
Web Server - Ask For Help / Re: Webclient with certificat
« Last post by Bruce on May 08, 2025, 06:03:43 PM »Not sure if this is helpful - but see NetDemo, NetWebClient, "Secure HTTPS Options" tab, Client Certificate option.
If you can get it working from there, you'll be golden.
Cheers
Bruce
If you can get it working from there, you'll be golden.
Cheers
Bruce
69
Web Server - Ask For Help / Webclient with certificat
« Last post by Niels Larsen on May 07, 2025, 10:19:40 PM »Hi
I'm a little rusty with certificates so I need some help.
The task is to connect to an api via an NT webclient.
I have a pfx file and a password.
Works fine in Postman, so now I just need to get it to work in NT.
How do I insert the reference to the certificate and password?
Regards Niels
I'm a little rusty with certificates so I need some help.
The task is to connect to an api via an NT webclient.
I have a pfx file and a password.
Works fine in Postman, so now I just need to get it to work in NT.
How do I insert the reference to the certificate and password?
Regards Niels
70
Web Server - Ask For Help / MObile device (Phone) @media screen and (max-width: 600px) FONT SIZE question
« Last post by rjolda on May 07, 2025, 05:07:41 AM »Hi
NT 14.21, C 11
I am running a NT app on browser and also in browser on mobile device ( Android - chrome).
I can change the font size on browsers EXCEPT FOR MOBILE DEVICES (Phone)
Using:
:root{
--font-family:"Open Sans","Segoe UI",Tahoma, Verdana, Arial, Helvetica, sans-serif;
--font-size:8pt;
}
I can change the font size for apps running on desktop - I can make the font very small. HOWEVER,
The font size does not get smaller on Mobile Device (phone). That is my issue, I want to make it smaller - so that the user can make it bigger if they want. BUt that is NOT happening.
I don't see any settings for font specific to @media screen and (max-width: 600px).
Indeed, if I put a specific font size in that section like this:
@media screen and (max-width: 600px) {
body{
font-size:8px;}
}
It does not make the font smaller. Seems like something else is setting font minimum size on mobile phone? Maybe mobile browser settings?
Any insights?
THanks,
Ron
NT 14.21, C 11
I am running a NT app on browser and also in browser on mobile device ( Android - chrome).
I can change the font size on browsers EXCEPT FOR MOBILE DEVICES (Phone)
Using:
:root{
--font-family:"Open Sans","Segoe UI",Tahoma, Verdana, Arial, Helvetica, sans-serif;
--font-size:8pt;
}
I can change the font size for apps running on desktop - I can make the font very small. HOWEVER,
The font size does not get smaller on Mobile Device (phone). That is my issue, I want to make it smaller - so that the user can make it bigger if they want. BUt that is NOT happening.
I don't see any settings for font specific to @media screen and (max-width: 600px).
Indeed, if I put a specific font size in that section like this:
@media screen and (max-width: 600px) {
body{
font-size:8px;}
}
It does not make the font smaller. Seems like something else is setting font minimum size on mobile phone? Maybe mobile browser settings?
Any insights?
THanks,
Ron