Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #30041

Re: Read binary file

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Read binary file
Date 2016-03-17 23:15 +0100
Organization PointedEars Software (PES)
Message-ID <33146564.cWhRoE1DKn@PointedEars.de> (permalink)
References (2 earlier) <ncdmil$1ser$1@gioia.aioe.org> <2237637.9AE1fihV9u@PointedEars.de> <nceuqd$756$1@news.albasani.net> <6005521.MME42bj82n@PointedEars.de> <ncf81p$mqu$1@gioia.aioe.org>

Show all headers | View raw


Herbert Kleebauer wrote:

> On 17.03.2016 21:43, Thomas 'PointedEars' Lahn wrote:
>> Stefan Weiss wrote:
>>> So, now that the copyright situation has been explained, what's the
>>> trivial solution?
> 
>> Transparent HTTP proxying with mod_rewrite, mod_proxy, mod_proxy_http &
> 
> That's neither a trivial solution

It was trivial to me (I did the configuration – essentially one line in an 
.htaccess file – of my local server this evening in less than one hour), 
although I have to admit that I had to look a few things up as I did not 
remember them exactly (Stack Overflow was very helpful there as other people 
faced the same, eventually trivially-to-solve, problems as I).

> nor a solution at all.

Have you even tried it?

> The user only gets the the url of the original picture and the url of the
> modifcation file. The user doesn't use a proxy.

They do not have to.  As you are reading superficially, you are jumping to 
conclusions.

> I can understand why a server doesn't deliver the picture if it doesn't
> like a referer header,

That is the only catch with the solution I suggested (and *tried* 
*successfully*) that I can think of.  If the Referer [sic!] header field 
value is checked by the original host, then either the user must disable 
transmitting that header field in their browser, or the forward proxy must 
be configured not to forward that header field (assuming that the original 
host is not unwisely configured to depend on the transmission of that field, 
since it is optional according to HTTP).  It may also be necessary for the 
forward proxy to pretend to be a (certain) Web browser by sending 
corresponding header fields (at least, “User-Agent”).

> but I can't understand the restrictions by the browser. I see it as a 
> fundamental function to read any accessible file on any web server into a
> javascript array (even by removing the referer header if necessary).

You have not even attempted to google “Same Origin Policy” yet, have you?

It is futile to complain about this (here).  Browsers work the way that they 
do.  All you can do is make the best of it since not all of those that are 
used are free software.

>>>> There is no javascript.
>>> ???????????
>> See the reference to the “ES Matrix” in my signature.
> 
> <html><head><title>jpg</title>
> <script type="text/javascript">
> :
> :
> </script></head><body></body></html>

When I said “See the reference …”, I meant that you should *follow*
the reference and *read* the explanations in the referred document.

I did not mean that you should post code in order to support your 
misconceptions.

> It is declared as javascript

It is not.

> and therefore it is by definition javascript.

Ex falso quodlibet.

> Whether it is processed by a javascript, JavaScript or a ECMAScript
> interpreter doesn't matter, by definition the code itself is javascript
> code.

Such a nonsense, it is not even wrong.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Read binary file Herbert Kleebauer <klee@unibwm.de> - 2016-03-16 23:20 +0100
  Re: Read binary file Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-17 01:04 +0100
    Re: Read binary file Stefan Weiss <krewecherl@gmail.com> - 2016-03-17 02:34 +0100
      Re: Read binary file Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-17 07:56 +0100
    Re: Read binary file Herbert Kleebauer <klee@unibwm.de> - 2016-03-17 08:31 +0100
      Re: Read binary file Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-17 19:10 +0100
        Re: Read binary file Stefan Weiss <krewecherl@gmail.com> - 2016-03-17 19:59 +0100
          Re: Read binary file Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-17 21:43 +0100
            Re: Read binary file Herbert Kleebauer <klee@unibwm.de> - 2016-03-17 22:36 +0100
              Re: Read binary file Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-17 23:15 +0100
              Re: Read binary file Stefan Weiss <krewecherl@gmail.com> - 2016-03-18 00:43 +0100
                Re: Read binary file Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-18 17:22 +0100
                Re: Read binary file Herbert Kleebauer <klee@unibwm.de> - 2016-03-18 21:14 +0100
                Re: Read binary file Matthias Wiehl <mw@kwarg.de> - 2016-03-19 00:02 +0100
                Re: Read binary file Herbert Kleebauer <klee@unibwm.de> - 2016-03-19 08:48 +0100
                There is no javascript (was: Read binary file) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-19 13:02 +0100
                Re: There is no javascript (was: Read binary file) Mark - <nonemail@spamspamapam.net> - 2016-03-19 14:33 +0000
                Re: There is no javascript (was: Read binary file) Andrew Poulos <ap_prog@hotmail.com> - 2016-03-20 14:30 +1100
                Re: There is no javascript (was: Read binary file) Mark - <nonemail@spamspamapam.net> - 2016-03-20 13:07 +0000
                Re: There is no javascript (was: Read binary file) John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-20 10:39 +0000
                Re: There is no javascript (was: Read binary file) John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-20 11:19 +0000
                Re: There is no javascript (was: Read binary file) Philip Herlihy <thiswillbounceback@you.com> - 2016-03-21 17:06 +0000
                Re: Read binary file Scott Sauyet <scott.sauyet@gmail.com> - 2016-03-22 17:18 -0700
                Re: Read binary file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-23 10:12 +0100
                Re: Read binary file John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-23 16:27 +0000
                Re: Read binary file Herbert Kleebauer <klee@unibwm.de> - 2016-03-24 10:41 +0100
                Re: Read binary file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-24 11:14 +0100
                Re: Read binary file John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-24 11:41 +0000
                Re: Read binary file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-24 13:36 +0100
                Re: Read binary file John Harris <niam@jghnorth.org.uk.invalid> - 2016-03-25 10:07 +0000
                Re: Read binary file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-25 11:28 +0100
                Re: Read binary file "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-03-24 11:31 +0100
                Re: Read binary file Herbert Kleebauer <klee@unibwm.de> - 2016-03-24 12:34 +0100
                Re: Read binary file "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-03-24 17:15 +0100
                Re: Read binary file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-24 11:33 +0000
                Re: Read binary file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-24 11:05 +0100
                Re: Read binary file Scott Sauyet <scott.sauyet@gmail.com> - 2016-03-23 20:16 -0700
                Re: Read binary file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-24 10:36 +0100
                Re: Read binary file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-24 11:18 +0100
                Re: Read binary file Scott Sauyet <scott.sauyet@gmail.com> - 2016-03-27 10:22 -0700
                Re: Read binary file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-28 00:18 +0200
                Re: Read binary file Scott Sauyet <scott.sauyet@gmail.com> - 2016-03-28 05:35 -0700
                Re: Read binary file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-29 00:53 +0200
  Re: Read binary file Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-17 02:23 +0100
  Re: Read binary file Herbert Kleebauer <klee@unibwm.de> - 2016-03-17 08:42 +0100
  Re: Read binary file Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-03-20 22:03 +0000

csiph-web