You can't know what the proxy wants,
so you have to test all possible situations and
pick the one that works
As Maurizio said, some users have to add the domain
and some not (on the same proxy!)
Paul
- Original Message -
From: "Tibor Csonka" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Maybe we should include the '@' also as separator.
Paul wrote:
>Maurizio,
>
>different users can have different rights also.
>
>The only way I found sofar is detect a domain yourself
>and try all possible authentications possible and pick the
>one that succeeds.
>
>So if the user is in a domain,
I have a "strange" situation. A customer use ISA server for proxy and has
>enabled the NTLM authentication. To authenticate some user must include the
>domain (domain\username) and some other user must not include it (I mean, if
>they include the domain they will not authenticated). I don't have
Maurizio,
different users can have different rights also.
The only way I found sofar is detect a domain yourself
and try all possible authentications possible and pick the
one that succeeds.
So if the user is in a domain, then try logon with
username
domain\username
[EMAIL PROTECTED]
Paul
-
Hi.. Friends..
How i implement a timeout control in HttpCli...
I using HttpCli in sync mode, because i need to run it in Thread..
It's work fine, but in some(rare) cases httpcli freeze and no get any
response...
How i cancel httpcli get/post command? after started?
Thanks in
Scrive Tibor Csonka <[EMAIL PROTECTED]>:
> Hello list,
>
> I've just ran into a small bug in NTLM authentication from HttpCli.
> There is a possibility that the user enters the username as
> domain\username.
> In this case HttpCli will send the username and the domain as the
> username, wich is
thanks
Paul
- Original Message -
From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Thursday, January 19, 2006 10:25 PM
Subject: Re: [twsocket] using Api form with message loop
> Hello Paul,
>
> WSocekt1.Handle
>
> ---
> Rgds, Wilfried [TeamICS]
> htt
Hello Paul,
WSocekt1.Handle
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Thursday, January 19, 2006, 22:11, Paul wrote:
>> Probably we are talking the same :)
> I think so, but if the hidden form is created by WSocket,
> than where
> Probably we are talking the same :)
I think so, but if the hidden form is created by WSocket,
than where can I get the handle?
Paul
- Original Message -
From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Thursday, January 19, 2006 10:06 PM
Subject: Re: [t
Hello albert,
thanks for feedback.
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Thursday, January 19, 2006, 21:51, albert drent wrote:
> The CloseDelayed in the ondatasent was the solution THANKS!!! It's
> sooo logical I'm ashamed I didn'
Hello Paul,
> You can't post a message to a program without a form
Yes you can. The addresee only have to have a (hidden) window.
> To post or send a mesaage, you always need a handle to
> post the message
Yes but the handle can be a (hidden) window. Not nececarly a TForm.
Probably we are talki
You can't post a message to a program without a form
and to communicate with a system hook.
To post or send a mesaage, you always need a handle to
post the message
Paul
- Original Message -
From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Thursday, January
The CloseDelayed in the ondatasent was the solution THANKS!!! It's sooo logical
I'm ashamed I didn't see that.
The crlf in the encrypted data is taking care of, but you're right, this was an
isue.
Thank you all again.
Albert
--
To unsubscribe or change your settings for TWSocket mailing list
Hello Paul,
I may be understeanding you wrong, but you dont need a form to
communicate with another program tru messages. You only need a form if
you wants to have windows controls on it like buttons, memos etc..
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http:/
Hi Wilfried,
that sounds like the console mode programs.
I need to create a form myself, because it has to communicate
with another program thru messages.
Paul
- Original Message -
From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Thursday, January 19, 200
Hello,
I have started a new thread for this, because this one is a reply of
"Sending 7 Kilobytes of data" whitch I was interested to follow and this
one is not my 100% interest or knowledge. Please answer to the new
thread only.
Many modern email readers can sort on thread whitch is very nice, so
Hello Paul,
Yes look at the examples. One of them (sorry forgot the name) create a
form on the fly. But you can do same without form whitch will save
probably some more memory. Create a class, create the ICS component you
wants (whitch will create a hidden window), and execute the message pump
fro
Derive your own stream, probably best to be from TFilestream, but add a
header property or something. Then override the seek and read methods (I
think) to either seek into the file or into your header, and to read
appropriate data.
Dan
- Original Message -
From: "Opqrst Ghrst" <[EMA
but if the file is more than 1 GB, That will cost my
too mush disk free space,I am confuse on this problem,
because I must add Form Field Value information on the
Head of the data and boundary end of data.it will be
work by ContentTypePost="multipart/form-data" mothod
post.
Then you must program
is it possible to create a form with a message loop with api
and still use the http async methods ?
This will shrink the total application size with almost 300K
Paul
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
thanks F.P.
I See,
but if the file is more than 1 GB, That will cost my
too mush disk free space,I am confuse on this problem,
because I must add Form Field Value information on the
Head of the data and boundary end of data.it will be
work by ContentTypePost="multipart/form-data" mothod
post.
--
>> Display(IntToStr(SendStr(Encrypt(AnswerData.CommaText) + #13#10))+'bytes
>> sent');
>> CloseDelayed;
>
> There could be 2 problems here. The first is Close already mentioned by
> Arno, and the other is Encrypt. Are you sure #13#10 will be never in
> your encrypted string ?
Well seen.
--
Contr
when I use Http Post Web to send file,
if the file is bigger as 100mb.
because content must has some FormField to post,
I use MemorrStream write these information and
FileStream.
when I load to TMemoryStream it will cause my computer
slow to build MemoryStream, can I use other mothods to
resolve t
I don't have a specific case where it isn't working.
I was trying to fix things and I thought that someone knows how
proxies/http servers are accecpting NTLM credentials.
Paul wrote:
>>I did this in the HTTP authentication part not in the proxy.
>>Can somebody confirm that in case of NTLM proxie
>I did this in the HTTP authentication part not in the proxy.
>Can somebody confirm that in case of NTLM proxies, should work the same
>way?
There are several ways a proxy auth is requested,
it depends on the proxy settings and/or domain
or even a workgroup.
- username
- domain\username
- [EMAIL
I see,
but HttpCli.SendStrem must Write "Buf1" String before
Load FileStream, and Wirte "Buf2" String at end.
it seems will change my oringe file imformation.
Because the ContentTypePost="multipart/form-data"
I cannot only read file to Stream.
Do You have nice ideal?
Thanks.
Buf1="--
Hello list,
I've just ran into a small bug in NTLM authentication from HttpCli.
There is a possibility that the user enters the username as
domain\username.
In this case HttpCli will send the username and the domain as the
username, wich is not working (at least on IIS 6).
The code looks like th
You don't need any buffers to create yourself.
just use
HttpCli.SendStrem:= TFileStream.Create('your file', fmOpenRead)
HttpCli.SendStream.Position:= 0;
HttCli.PostAsync;
Paul
- Original Message -
From: "Opqrst Ghrst" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Thur
hello
I try to use FileStrem, it must has Free Space to
create the same size of File,but it should be better
than TmemoryStream, if teh file is biger.
HttpCli->ContentTypePost="multipart/form-data;
boundary=---7d5168231620eb2";
Buf1="-7d51682316
Hello Wilfried,
Thanx i'll check all this.
Regards.
--
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
You should use a TFileStream instead of a TMemorystream.
Paul
- Original Message -
From: "Opqrst Ghrst" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Thursday, January 19, 2006 10:37 AM
Subject: [twsocket] HTTP POST - SendStream With TMemoryStream
Hello all,
when I use Ht
> We want to use ZLib1.dll in our projects. Is this what you (Angus)
> meant by "built with dll or standalone"?
This should be very obvious from a cursory examination of the FTP client
source code:
{$I IcsZlib.inc}
IcsZlibHigh,
{$IFDEF USE_ZLIB_OBJ}
IcsZLibObj, {interface to access
Hello,
We want to use ZLib1.dll in our projects. Is this what you (Angus) meant by
"built with dll or standalone"? If that's not possible, we can live with the
obj's. anyway, Could someone tell me the units that must be included in the
package and the conditional defines needed? It still does n
Hello all,
when I use Http Post Web to send file,
if the file is bigger as 100mb.
because content must has some FormField to post,
I use MemorrStream write these information and
FileStream.
when I load to TMemoryStream it will cause my computer
slow to build MemoryStream, can I use other mothods
Hello Albert,
> Display(IntToStr(SendStr(Encrypt(AnswerData.CommaText) + #13#10))+'bytes
> sent');
> CloseDelayed;
There could be 2 problems here. The first is Close already mentioned by
Arno, and the other is Encrypt. Are you sure #13#10 will be never in
your encrypted string ?
---
Rgds, Wilfr
> >> Then you should count with max handle windows can manage (about 10.000
> >> standard and 18.000 with registry tricks).
> FT> Is this valid also for v6?
>
> V6 don't need one handle per socket anymore.
Right.
> But seems that Winsock itself uses 3 handles per socket, this is at
> least wh
> > I dont mean TTimer, because that TTimers are limited recourse, also each
> > Timer create a hidden window also limited. So in your case using TTimers
> > will get you probably out of recourses.
>
> I asked a few days ago to Francois if the TTimer code of HttpCli could be
> used in THttpConnecti
Use line mode to have TWSocket assemble lines for you.
Also read message thread with subject "Sending 7 kilobytes of data" and read
"TCP/UDP primer"
document available from support page at my website. You'll understand how TCP
transmission work and
how to manage your receiver to get all data.
--
> Yes, I think I used TCP since I'm using TWSocketServer
You should read "TCP/UDP primer" document available from "support" link at ICS
website
(http://www.overbyte.be). This document explain that TCP is a stream protocol
which do not preserve
datagram boundaries. You will receive all your data
> >> Then you must divide memory with ram size occupied per socket, some
> >> reported about 6KB average, my own tests showed rather 10KB. Not
> >> counting all other processes/drivers that may allocate memory in this
> >> segment.
> FT> Is this paged memory or non-paged also ok?
> Sorry
> Each throttler requires a different interval. Perhaps a
> timer of 1ms interval can cover all?
Triggering a timer (any kind) every milli second would waste a lot of CPU !
You should avoid short time period.
See the bandwidth control I've implemented in HTTP client component. The mean
bandwidth
41 matches
Mail list logo