People,
Most browsers allow me to suppress viewing of images when I browse a
URL.
Can this behavior be duplicated by the server?
I'd like for my server to detect if a user has image viewing turned off
in his browser.
Then, my server would be loaded a bit less.
-Bob si*****@sinbuzz .com http://SinBuzz.com
[ For Those Who Live In Sin ] 9 1440 si*****@gmail.c om did eloquently scribble:
People,
Most browsers allow me to suppress viewing of images when I browse a
URL.
Can this behavior be duplicated by the server?
I'd like for my server to detect if a user has image viewing turned off
in his browser.
Then, my server would be loaded a bit less.
Um... when images are disabled in the browser, it doesn't send the REQUESTS
for the images TO the server in the first place. So I don't see how the
server detecting this would reduce load. If anything the extra check would
add cpuload to the server.
--
_______________ _______________ _______________ _______________ _______________ ___
| sp****@freenet. co.uk | "Are you pondering what I'm pondering Pinky?" |
|Andrew Halliwell BSc(hons)| |
| in | "I think so brain, but this time, you control |
| Computer Science | the Encounter suit, and I'll do the voice..." |
------------------------------------------------------------------------------ sp****@freenet. co.uk wrote: si*****@gmail.c om did eloquently scribble:
>People,
>Most browsers allow me to suppress viewing of images when I browse a URL.
>Can this behavior be duplicated by the server?
>I'd like for my server to detect if a user has image viewing turned off in his browser.
>Then, my server would be loaded a bit less.
Um... when images are disabled in the browser, it doesn't send the
REQUESTS for the images TO the server in the first place. So I don't see
how the server detecting this would reduce load. If anything the extra
check would add cpuload to the server.
It is probably useless as a way to reduce load, but it is an interesting
problem for which the solution may be useful.
Then again, perhaps not, most of the web is unusable without pictures these
days.
Yes,
You have an obvious point.
What about if we have only 1 response to 1 request?
So...
Let's do a mind experiment.
1. I type http://ibm.com into my browser and hit enter
2. browser sends 1 request to ibm.com
3. server sends a bunch of data back in 1 response
I'm trying to get a better understanding of step 3.
Can the server get any info out of the request which it can use?
Is there something in the request header which says,
"dont send images"
??
....Bob si*****@sinbuzz .com http://SinBuzz.com
[ For Those Who Live In Sin ]
On Jan 18, 4:47 pm, spi...@freenet. co.uk wrote:
sinb...@gmail.c om did eloquently scribble:
People,
Most browsers allow me to suppress viewing of images when I browse a
URL.
Can this behavior be duplicated by the server?
I'd like for my server to detect if a user has image viewing turned off
in his browser.
Then, my server would be loaded a bit less.Um... when images are disabled in the browser, it doesn't send the REQUESTS
for the images TO the server in the first place. So I don't see how the
server detecting this would reduce load. If anything the extra check would
add cpuload to the server.
--
_______________ _______________ _______________ _______________ _______________ ___
| spi...@freenet. co.uk | "Are you pondering what I'm pondering Pinky?" |
|Andrew Halliwell BSc(hons)| |
| in | "I think so brain, but this time, you control |
| Computer Science | the Encounter suit, and I'll do the voice..." |
------------------------------------------------------------------------------
si*****@gmail.c om wrote:
Yes,
You have an obvious point.
What about if we have only 1 response to 1 request?
So...
Let's do a mind experiment.
1. I type http://ibm.com into my browser and hit enter
2. browser sends 1 request to ibm.com
3. server sends a bunch of data back in 1 response
I'm trying to get a better understanding of step 3.
Can the server get any info out of the request which it can use?
Is there something in the request header which says,
"dont send images"
??
You should SERIOUSLY learn how to read HTML and look up the RFC on HTTP.
Sigh...
Typically when you issue an HTTP request, an HTML document (or some other
format) is returned. If it is something the browser or add-on program
understands, the file is parsed and additional action is taken.
In the case of HTML and the <A IMG...></Atag, an additional HTTP request
is made for the image.
In article <11************ ********@s34g20 00cwa.googlegro ups.com>, si*****@gmail.c om wrote:
Let's do a mind experiment.
1. I type http://ibm.com into my browser and hit enter
2. browser sends 1 request to ibm.com
3. server sends a bunch of data back in 1 response
4. Browser parses the data, which consists of a header and a body. The
body is likely HTML. In that HTML, the browser finds the img tags.
5. If you haven't disabled images, for each img tag:
5A. The browser sends a request to get the image.
5B. The server sends back the image.
A simple page with 5 images on it would involve 6 requests to the
server, and 6 responses from the server.
--
--Tim Smith
mlw wrote:
Then again, perhaps not, most of the web is unusable without pictures these
days.
You mean, like Google?
__/ [ si*****@gmail.c om ] on Friday 19 January 2007 00:15 \__
People,
Most browsers allow me to suppress viewing of images when I browse a
URL.
Can this behavior be duplicated by the server?
I'd like for my server to detect if a user has image viewing turned off
in his browser.
Then, my server would be loaded a bit less.
-Bob
Hi,
File managers like Konqueror tends to send simultaneous requests for images
and other files in order to create thumbnails and previews (e.g. for
directory contents). I rely one host which supresses this partially by
setting a limit on the number of simultaneous connections (to 5). While it
makes it annoying to browse (getting warnings), it can sooner or later force
to user to stop fetching image previews over, e.g. FTP (this can be done on
a per protocol basis) or set on a limit on this multithreaded process. I
don't know why you crossposted to these two groups, but FWIW the server in
question runs BSD.
--
~~ Best wishes
Roy S. Schestowitz | $apt-get -not windows http://Schestowitz.com | GNU/Linux | PGP-Key: 0x74572E8E
Swap: 1036184k total, 398188k used, 637996k free, 177668k cached http://iuron.com - next generation of search paradigms si*****@gmail.c om did eloquently scribble:
Yes,
You have an obvious point.
What about if we have only 1 response to 1 request?
So...
Let's do a mind experiment.
1. I type http://ibm.com into my browser and hit enter
2. browser sends 1 request to ibm.com
3. server sends a bunch of data back in 1 response
The server sends back the index.html page for that 1 request.
The browser begins rendering the page, selecting fonts, setting up tables
and frames, looking up image sizes, downloading the images on the page (or
not, if images are disabled)
I'm trying to get a better understanding of step 3.
Can the server get any info out of the request which it can use?
The html page IS the real "set of requests". HTML is simple text, it
contains no graphical data within itself. Only <imglinks within it. It's
those <imglinks that trigger the download of images.
Is there something in the request header which says,
"dont send images"
No, it doesn't request the image. Servers only send what is requested.
try it with wget. Just point wget at your favourite website, say...
wget slashdot.org
If you just wget an index.html page (or just point it at a website), that is
all you'll get. It won't parse the index.html page and download everything
referred to on it unless you tell it to.
--
| |What to do if you find yourself stuck in a crack|
| sp****@freenet. co.uk |in the ground beneath a giant boulder, which you|
| |can't move, with no hope of rescue. |
|Andrew Halliwell BSc(hons)|Consi der how lucky you are that life has been |
| in |good to you so far... |
| Computer Science | -The BOOK, Hitch-hiker's guide to the galaxy.|
Tim Smith <re************ @mouse-potato.comdid eloquently scribble:
In article <11************ ********@s34g20 00cwa.googlegro ups.com>, si*****@gmail.c om wrote:
>Let's do a mind experiment.
1. I type http://ibm.com into my browser and hit enter 2. browser sends 1 request to ibm.com 3. server sends a bunch of data back in 1 response
4. Browser parses the data, which consists of a header and a body. The
body is likely HTML. In that HTML, the browser finds the img tags.
I.... wonder if we've been duped and just done someone's homework....
:)
--
_______________ _______________ _______________ _______________ _______________ ___
| sp****@freenet. co.uk | |
|Andrew Halliwell BSc(hons)| "ARSE! GERLS!! DRINK! DRINK! DRINK!!!" |
| in | "THAT WOULD BE AN ECUMENICAL MATTER!...FECK! !!! |
| Computer Science | - Father Jack in "Father Ted" |
------------------------------------------------------------------------------ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steve |
last post by:
I have a pretty nice php web site, that's also reasonably secure.
However, I wrote some php code to create some dynamic images based on
database data, but I can't figure out how to secure this script?
when I reference the php code via img src="myimage.php", none of my
session variables are available for use in the script. So, without my
session variables, how am I suppose to ensure that the script is only
run by a valid user, rather...
|
by: Fabian |
last post by:
var preload1 = new Image(); preload1.src = "/pic/yay.gif";
var preload2 = new Image(); preload2.src = "/pic/nay.gif";
The above is meant to preload image files, yes? Problem is, it doesnt
seem to be doing so in practice. Any idea where Im going wrong? Could it
be that things work differnetly when in an attached .js file?
--
--
|
by: Mr. Orange |
last post by:
I've found this might not really be possible to do with js, but I'm not
really versed enough in it to know for sure.
I have a web cam saving an image to a server, "cam.jpg". The cam replaces
the image every x seconds.
On the client I have some simple js that grabs "cam.jpg?" + (to fail the browser's cache lookup of cam.jpg) when a timer
fires. It's the typical home-brew refreshing-cam scenario, and that's all
working fine.
|
by: Hitesh |
last post by:
Hi,
I am getting the response from another Website by using the HttpHandler in
my current site. I am getting the page but all the images on that page are
not appearing only placeholder are displayed.
Can anybody know this issue and help me to resolve this.
In past i received the response saying that i should download the image
first and then parse the actual response and modify the src attribute of the
|
by: Neo Geshel |
last post by:
I am seeking to hand-roll my own blog in ASP.NET 2.0 and SQLExpress
2005. Why? Because I can. Because I will gain experience.
The one thing that has me stumped at square one is inline images. That
is, images inline with the actual content of the blog itself. Is there
an example that I can be pointed to, where I can examine some code and
figure out how to do this? Frankly I haven't got a clue, aside from
breaking the content up into...
| |
by: Navu |
last post by:
hi
i have written a code in javascript and this code create lots of images
at run time.
Whenever page loads all these images get downloaded as 90% of images
are same
So is there any way so that the images doesnt get dowloaded every time
rather if page load has 300 images then only distinct images get
downloaded all other are getting displayed by taking images from cache.
pls suggest me solution as early as possible..
|
by: phil-news-nospam |
last post by:
Why does SVG need a different tag than other images?
IMHO, SVG should be implemented as an image type just like any other image
type, allowing it to work with <img> tags, and ... here is the important
part ... also work with backgrounds in other tags.
I fail to see any wisdom in making SVG different than say PNG (of course
the implementation of the rendering code would obvious be different).
--
|
by: Jon B |
last post by:
Hi There!
For some reasons, some images of my ASP.NET website are cannot be displayed
in the browser (even tho they exists on the server). They are just normal
JPG and PNG images and the website has been working fine before. I tried
re-upload the original files to the remote server but still no solution.
Any ideas?
Thank you all in advance!!!
|
by: eholz1 |
last post by:
Hello Members,
I am setting up a photo website. I have decided to use PHP and MySQL.
I can load jpeg files into the table (medium blob, or even longtext)
and get the image(s) to display without a problem. I am using
chunk_split(data) and the base64_encode and base64_decode on the files.
I do a select from the database, and then echo the image (with
header(Content Type: image/jpeg)
and the decoded image displays fine. Yes, I have...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |