[twsocket] html code in downloaded file

2006-06-19 Thread Mike Versteeg
Hi,

I am trying to download a file using HttpCli and TFileStream, but the
downloaded file has some html code inserted in front of the actual
binary data (announcing the data in plain text). Is there an easier
way to remove this than by examining and removing it? I notice IE
saves the file without the html code..

Thanks,

Mike
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] html code in downloaded file

2006-06-19 Thread Mike Versteeg
No, it's in the stream alright. As I said, it's some html code. I
studied it a bit closer and it's a redirect. I come from Indy and that
handled redirects automatically (but I extremly dislike their
blocking), so am now browsing ICS's help file (google :) to find out
how to enable redirects in HttpCli. I assume that'll fix the problem.

PS: if ever a help file is made available for ICS, I am willing to pay
for it as it would safe me a lot of time.

Mike

On 6/19/06, Francois PIETTE [EMAIL PROTECTED] wrote:
 It is likely that you haven't cleared the stream used to receive data for a
 previous request.

 --
 [EMAIL PROTECTED]
 http://www.overbyte.be

 - Original Message -
 From: Mike Versteeg [EMAIL PROTECTED]
 To: twsocket@elists.org
 Sent: Monday, June 19, 2006 11:37 AM
 Subject: [twsocket] html code in downloaded file


  Hi,
 
  I am trying to download a file using HttpCli and TFileStream, but the
  downloaded file has some html code inserted in front of the actual
  binary data (announcing the data in plain text). Is there an easier
  way to remove this than by examining and removing it? I notice IE
  saves the file without the html code..
 
  Thanks,
 
  Mike
  --
  To unsubscribe or change your settings for TWSocket mailing list
  please goto http://www.elists.org/mailman/listinfo/twsocket
  Visit our website at http://www.overbyte.be

 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket Digest, Vol 174, Issue 1

2006-06-19 Thread xmedia

Thanks Francois. You are right. I didn't use the latest version. I managed
to solve the problem by downloading the latest beta version. Thank you.
Wang
Date: Sun, 18 Jun 2006 19:27:25 +0200
From: Francois PIETTE [EMAIL PROTECTED]
Subject: Re: [twsocket] HttpCli user authentication whent get()
To: ICS support mailing twsocket@elists.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; format=flowed; charset=iso-8859-1;
reply-type=original

Are you using the exact same URL with IE and the component ?
Have you tried with the sample program HttpTst provided with ICS ?
Which ICS version are you ising ? There are several authentication scheme. 
NTLM has been added not so long ago. Be sure to use the latest ICS (V5 or
V5) available from my website.

Another idea: maybe the camera software use cookies. You must grab the
cookie by first going to the main page and then you can access the image.

--
[EMAIL PROTECTED]
http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS threaded server and load balancing

2006-06-19 Thread David Hooker
On 6/14/06, Francois Piette [EMAIL PROTECTED] wrote:

  OK, but what if I want one thread per CPU?
 
  So if I have a 4 CPU rig and 400 connections, I want to
  have 4 threads and 100 connections per thread.
  But if the load increases to 600 connections, I want to
  have 4 threads and 150 connections per thread.

  This si not a winsock or TCP/IP component issue. It is an OS issue. I
 don't
  know Windows has an API to force a thread to run on a given CPU. You
 have an
  API to know the number of processors.



Sorry, I wasn't clear enough.  I want to be able to balance connections over
threads.
So instead of having 100 connections per thread, and then creating a new
thread, and then
another 100 connections, and so on...   I want to have 4 threads and have
(number of connections at this present moment) / 4 connections per thread.

It is probably too much to ask for connections to migrate threads in
response to loading,
but it would be nice if new connections picked the thread that had the
fewest connections.
So I want to have a fixed number of threads, but balance the connections
evenly over those
threads.


Also, what is the behaviour of UDP and multiple threads?


Thankyou
David Hooker
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be