ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \externalfigure problem with displaying external images via https://live.contextgarden.net
@ 2022-12-05  1:15 Jaroslav Hajtmar via ntg-context
  2022-12-05  8:05 ` Aditya Mahajan via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Jaroslav Hajtmar via ntg-context @ 2022-12-05  1:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jaroslav Hajtmar


Hello.
A few years ago I created a PHP application for printing filled forms with PDF background. PHP application is generating ConTeXt source code, that is subsequently translated using the online application https://live.contextgarden.net.
I have now discovered that the application is not functional because the https://live.contextgarden.net application is unable to retrieve the external PDF file from our organization's URL.

Oddly, this source code at https://live.contextgarden.net does not generate a PDF file with the form in the background:

\starttext
 \externalfigure[http://gyza.cz/iapp/opisvysv/498540_SS_16_predmetu_str1_PDF.pdf] % PDF FILE ON OUR ORGANIZATION (SCHOOL) HOSTING
\stoptext

This is despite the fact that the PDF file exists at the URL and the browser is able to display it.

On the other side the source code:

\starttext
\externalfigure[http://hajtmar.cz/iapp/opisvysv/498540_SS_16_predmetu_str1_PDF.pdf] % PDF FILE ON MY PRIVAT HOSTING
\stoptext

or source code:
 
\starttext
 \externalfigure[http://www.pragma-ade.nl/show-gra.pdf] % PDF FILE ON PRAGMA-ADE.NL WEB
\stoptext


without any problems will generate a correct PDF file.

Does anyone know what the problem might be? Why online ConTeXt is not read my PDF file and on other side read another PDF file? What does onlineConText not like?
I need to get my application for printing archive certificates working again...

Thanks.
Jaroslav


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \externalfigure problem with displaying external images via https://live.contextgarden.net
  2022-12-05  1:15 \externalfigure problem with displaying external images via https://live.contextgarden.net Jaroslav Hajtmar via ntg-context
@ 2022-12-05  8:05 ` Aditya Mahajan via ntg-context
  2022-12-05  8:27   ` Henning Hraban Ramm via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan via ntg-context @ 2022-12-05  8:05 UTC (permalink / raw)
  To: Jaroslav Hajtmar via ntg-context; +Cc: Aditya Mahajan

On Mon, 5 Dec 2022, Jaroslav Hajtmar via ntg-context wrote:
> Does anyone know what the problem might be? Why online ConTeXt is not read my PDF file and on other side read another PDF file? What does onlineConText not like?
> I need to get my application for printing archive certificates working again...

I am guessing it is a security setting to avoid DOS attack (imagine forcing the server to download a ridiculously large file, etc.).

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \externalfigure problem with displaying external images via https://live.contextgarden.net
  2022-12-05  8:05 ` Aditya Mahajan via ntg-context
@ 2022-12-05  8:27   ` Henning Hraban Ramm via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-12-05  8:27 UTC (permalink / raw)
  To: ntg-context; +Cc: Henning Hraban Ramm

Am 05.12.22 um 09:05 schrieb Aditya Mahajan via ntg-context:
> On Mon, 5 Dec 2022, Jaroslav Hajtmar via ntg-context wrote:
>> Does anyone know what the problem might be? Why online ConTeXt is not read my PDF file and on other side read another PDF file? What does onlineConText not like?
>> I need to get my application for printing archive certificates working again...
> 
> I am guessing it is a security setting to avoid DOS attack (imagine forcing the server to download a ridiculously large file, etc.).

While that would be good to avoid abuse from external services like this 
one, the problem is just that the source is called via http, but the 
server redirects to https – ConTeXt doesn’t follow redirections.

Hraban

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-05  8:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-05  1:15 \externalfigure problem with displaying external images via https://live.contextgarden.net Jaroslav Hajtmar via ntg-context
2022-12-05  8:05 ` Aditya Mahajan via ntg-context
2022-12-05  8:27   ` Henning Hraban Ramm via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).