Re: [twsocket] New V6 beta FTP client and server components

2008-01-07 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote:
 Many thanks, today I managed to raise an exception in
 CommandPASV(), port in use. The port table reported the port as
 free, although
 the server actually was listening on that port. I was clicking
 around in multiple FTP clients when that happened.
 
 The port release code is called from a lot of places in different
 circumstances, not really look at it.

I will look at it.
 
 But at least the change to use sequential ports means such in-use
 errors will be much rarer, 

AFAIR, you did not mention in-use error replies sent by the server.
Most likely this just works around a buggy router/firewall that
caused the winsock 10061/10060 errors. If so, your fix should work
as long as the passive port range is large enough and more than
one free port would be available at any time. 

 it is the normal windows behaviour to use
 sequential ports, not the same one repeatedly.

However you also mentioned that the server got out of sequence
which may not happen, this should be investigated/fixed as well.
I tried to reproduce this behaviour yesterday in vain. I quoted
PASV then went on with all kind of commands but the server handled
them correctly. 

Arno

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


Re: [twsocket] smtp component not connected/ready

2008-01-07 Thread retnyg
hi,

i changed the code as follows:

procedure TMailer.SmtpClientRequestDone;

  function isError : boolean;
  begin
result := false;
if ((Error  399) and (Error  600)) or (error = 1) then result := 
true;
if result then if assigned(FOnError) then  FOnError(FSmtp.ErrorMessage);
  end;

begin
  // it is possible that an exception arises here : smtp component not 
connected so
  with FSmtp do begin
if isError then Rset
else
if not Connected then exit //Rset // fehlerbehandlung einbauen
else
case RqType of
  smtpConnect:
  begin
if AuthType = smtpAuthNone then Helo else Ehlo;
  end;
  smtpHelo: MailFrom;
  smtpEhlo: Auth;
  smtpAuth: MailFrom;
  smtpMailFrom: RcptTo;
  smtpRcptTo: Data;
  smtpData: Quit;
//  smtpRset: Quit;
//  smtpQuit: begin
//FBusy := false;
//if assigned(FOnMailSent) then FOnMailSent(FMailId);
//  end;
end;
  end;
end;


still i get the error smtp component not connected, even if i check
explicitly for it.

any ideas ?

tia, retnyg


AG [EMAIL PROTECTED] wrote:
 hi there,
 
 is there also such a known bug in smtpprot.pas ?

AG No known issues. Please check your code. An error is anything  0!
AG This can be a winsock error code  1 or an SMTP error
AG code. The action to be taken depends on both current request
AG type and error code, read the RFCs for a description of SMTP
AG error codes. Also a reconnect should never be tried by calling
AG Connect from a component event handler but by posting a 
AG custom message, in the message handler calling Connect is safe. 

AG --
AG Arno Garrels [TeamICS]
AG http://www.overbyte.be/eng/overbyte/teamics.html


 (testing with a gmx account)
 my app receives mail through pop3prot.pas then forwards them through
 smtpprot.pas.
 
 at first i received the exception smtp component not connected in
 smtpclientrequestdone, now i built in a check if not connected, now i
 receive smtp component not ready.
 
 procedure TMailer.SmtpClientRequestDone;
 
   function isError : boolean;
   begin
 result := false;
 if (Error  399) and (Error  600) then result := true;
 if result then if assigned(FOnError) then 
 FOnError(FSmtp.ErrorMessage);   end;
 
 begin
   // it is possible that an exception arises here : smtp component
 not connected so   with FSmtp do begin
 if isError then Rset
 else
 if not Connected then Connect
 else
 case RqType of
   smtpConnect:
   begin
 if AuthType = smtpAuthNone then Helo else Ehlo;
   end;
 
 
 tia, retnyg



-- 
Mit freundlichen Grüßen
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]


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


Re: [twsocket] smtp component not connected/ready

2008-01-07 Thread DZ-Jay

On Jan 7, 2008, at 06:56, Wilfried Mestdagh wrote:

 You call RSet if you have an error. If you have an error just call 
 Abort
 and try later again. Also check on any error, not only between those
 values:

 if Error  0 then begin
FSmtp.Abort;
SetSomeRetryMechanism; // retry with a timer or by posting a message
Exit;
 end;

You could call RSet if the error is between 500..599, which means a 
protocol error.  That way you could start the SMTP session anew.  
Anything else, you should call abort and retry like Wilfried says:

If (Error In [500..599]) Then Begin
FSmtp.RSet;
Exit;
End Else If (Error  0) Then Begin
FSmtp.Abort;
SetSomeRetryMechanism();
Exit;
End;

// No error occurred, do the normal stuff
// ...

But don't forget that RSet will reset the session to the point where 
you logged in, so you should treat it the same as your last log in 
command, which in your case is Auth:

case RqType of
smtpConnect:
begin
if AuthType = smtpAuthNone then Helo else Ehlo;
end;
smtpHelo: MailFrom;
smtpEhlo: Auth;

// Rset will return to this point
smtpAuth,
smtpRset: MailFrom;
...

dZ.

-- 
DZ-Jay [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

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


[twsocket] Memory leak...

2008-01-07 Thread zayin

Hello,

tcpPort: TWSocket;

tcpPort.Connect

AQTime is reporting a memory leak after I call connect.

Has anyone run into this issue?

D2007 SP3 XP Pro SP3

5.25 is in the WSocket file.


Ciao,

Mark

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


Re: [twsocket] Memory leak...

2008-01-07 Thread Fastream Technologies
Wifried had already replied to your initial message!

SZ


On 1/7/08, zayin [EMAIL PROTECTED] wrote:


 Hello,

 tcpPort: TWSocket;

 tcpPort.Connect

 AQTime is reporting a memory leak after I call connect.

 Has anyone run into this issue?

 D2007 SP3 XP Pro SP3

 5.25 is in the WSocket file.


 Ciao,

 Mark


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


Re: [twsocket] Memory leak...

2008-01-07 Thread zayin

Sorry, I have not seen a reply!

Where is the archive?

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Fastream Technologies
Sent: Monday, January 07, 2008 8:44 AM
To: ICS support mailing
Subject: Re: [twsocket] Memory leak...

Wifried had already replied to your initial message!

SZ


On 1/7/08, zayin [EMAIL PROTECTED] wrote:


 Hello,

 tcpPort: TWSocket;

 tcpPort.Connect

 AQTime is reporting a memory leak after I call connect.

 Has anyone run into this issue?

 D2007 SP3 XP Pro SP3

 5.25 is in the WSocket file.


 Ciao,

 Mark


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

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


Re: [twsocket] Memory leak...

2008-01-07 Thread zayin
 
Hello Wilfried ,

I located the archive and I see his response.

The leak is reported at program termination not during normal execution.



Mark


-Original Message-
From: zayin [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 07, 2008 8:46 AM
To: 'ICS support mailing'
Subject: RE: [twsocket] Memory leak...


Sorry, I have not seen a reply!

Where is the archive?

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Fastream Technologies
Sent: Monday, January 07, 2008 8:44 AM
To: ICS support mailing
Subject: Re: [twsocket] Memory leak...

Wifried had already replied to your initial message!

SZ


On 1/7/08, zayin [EMAIL PROTECTED] wrote:


 Hello,

 tcpPort: TWSocket;

 tcpPort.Connect

 AQTime is reporting a memory leak after I call connect.

 Has anyone run into this issue?

 D2007 SP3 XP Pro SP3

 5.25 is in the WSocket file.


 Ciao,

 Mark


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

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


Re: [twsocket] Memory leaks...

2008-01-07 Thread zayin
Hi,

The TWSocket is on a TDataModule. I am creating the TDataModule and yes I am
freeing it. If I was not freeing the TDataModule it would be reported as a
leak, along with the other items on the TDataModule.

I have not made a test case that just has a TDataModule with a TWSocket.

Are you using AQTime?

Thanks for the response,

Mark



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of DZ-Jay
Sent: Monday, January 07, 2008 10:53 AM
To: ICS support mailing
Subject: Re: [twsocket] Memory leaks...


On Jan 7, 2008, at 11:45, zayin wrote:

 I located the archive and I see his response.

 The leak is reported at program termination not during normal 
 execution.

Are you creating the class object yourself, and if so, are you sure it is
being destroyed?  Can you offer some code?

dZ.

P.S. Do not send a new question as a reply to a message with a different
topic -- always start a new topic.  Most mail programs will thread the
messages by ID and they may not be visible to some users.  
For example, your past messages seem to have come in as replies to the smtp
component not ready thread.

-- 
DZ-Jay [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

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

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


Re: [twsocket] Memory leaks...

2008-01-07 Thread zayin
Hello,

Sorry for the trouble.

I just fixed an error in another part of the program, a call to a driver,
having nothing to do with the TWSocket or really anything related to it, and
AQTime reports only one leak of 4096 bytes. This one I have no idea what it
is. It appears to be from MakeObjectInstance on TApplication.Create.

I just switched from SleuthQA to AQtime. AQtime seems pretty good so far.
There are many more features and the learning curve is OK.
 
Thanks for all your patience.

Ciao,

Mark

  

-Original Message-
From: zayin [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 07, 2008 11:10 AM
To: 'ICS support mailing'
Subject: RE: [twsocket] Memory leaks...

Hi,

The TWSocket is on a TDataModule. I am creating the TDataModule and yes I am
freeing it. If I was not freeing the TDataModule it would be reported as a
leak, along with the other items on the TDataModule.

I have not made a test case that just has a TDataModule with a TWSocket.

Are you using AQTime?

Thanks for the response,

Mark



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of DZ-Jay
Sent: Monday, January 07, 2008 10:53 AM
To: ICS support mailing
Subject: Re: [twsocket] Memory leaks...


On Jan 7, 2008, at 11:45, zayin wrote:

 I located the archive and I see his response.

 The leak is reported at program termination not during normal 
 execution.

Are you creating the class object yourself, and if so, are you sure it is
being destroyed?  Can you offer some code?

dZ.

P.S. Do not send a new question as a reply to a message with a different
topic -- always start a new topic.  Most mail programs will thread the
messages by ID and they may not be visible to some users.  
For example, your past messages seem to have come in as replies to the smtp
component not ready thread.

-- 
DZ-Jay [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

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

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


[twsocket] Question.

2008-01-07 Thread Andre Paradis
Hi,

 

I have a question regarding WebService and HTTP Header.
Instead of using MSSOAP, I create manually the HTTP request for Soap
service. On some server, I need to set SoapAction in the Http Header, how
do you suggest supporting that? For now, I have modify the HttpProt.pas but
we keep our ICS package up to date since many years now, and this
modification in this unit will make our life a little bit more complicated.

 

Thank you.

 

Andre Paradis

Logiciel LOC Software

[EMAIL PROTECTED]

 

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


Re: [twsocket] Question.

2008-01-07 Thread DZ-Jay

On Jan 7, 2008, at 13:55, Andre Paradis wrote:

  For now, I have modify the HttpProt.pas but
 we keep our ICS package up to date since many years now, and this
 modification in this unit will make our life a little bit more 
 complicated.

The easiest way is to extend HttpCli by descending from the class and 
overriding the appropriate methods, instead of changing the code on the 
HttpProt unit itself.

dZ.

-- 
DZ-Jay [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

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


[twsocket] UDP IP Spoofing Possible with ICS?

2008-01-07 Thread JLIST
Hello all,

Is it possible to UDP IP spoofing with twsocket component?
Not that I'm trying to create a security threat - it's used
in UDP firewall traversal, commonly used in VOIP apps.

I think I should be able to do it with raw socket but it
doesn't really work very reliably (and it doesn't work on some
OS at all) and it's more work to construct the whole IP packet.

It'll be great if it's a feature TWSocket provides for UDP
sockets.

-- 
Best regards,
Jack

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


Re: [twsocket] UDP IP Spoofing Possible with ICS?

2008-01-07 Thread Arno Garrels
JLIST wrote:
 Hello all,
 
 Is it possible to UDP IP spoofing with twsocket component?

The only possibility is to use raw sockets with any component
built around winsock API. You may want to use WinPCap instead 
which allows sending raw packets as well.

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

 

 Not that I'm trying to create a security threat - it's used
 in UDP firewall traversal, commonly used in VOIP apps.
 
 I think I should be able to do it with raw socket but it
 doesn't really work very reliably (and it doesn't work on some
 OS at all) and it's more work to construct the whole IP packet.
 
 It'll be great if it's a feature TWSocket provides for UDP
 sockets.
 
 --
 Best regards,
 Jack
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Socket hijacking

2008-01-07 Thread Arno Garrels
http://msdn2.microsoft.com/en-us/library/ms740621.aspx

If I want to hijack a listening socket by setting property ReuseAddr to TRUE,
it won't work since SetSockOpt() with parameter SO_REUSEADDR is only called on 
UDP-sockets in method Listen(). However that would work with sockets of type
SOCK_STREAM as well.
If I want to explicitely disallow hijacking of my listening socket by setting
option SO_EXCLUSIVEADDRUSE before Bind() there's currently no way.

--
Arno Garrels

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


Re: [twsocket] Question.

2008-01-07 Thread Andre Paradis
So you confirm, I don't have any other way to support a new key in the Http
Header.

Andre.

Andre Paradis
Logiciel LOC Software
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of DZ-Jay
Sent: January-07-08 2:11 PM
To: ICS support mailing
Subject: Re: [twsocket] Question.


On Jan 7, 2008, at 13:55, Andre Paradis wrote:

  For now, I have modify the HttpProt.pas but
 we keep our ICS package up to date since many years now, and this
 modification in this unit will make our life a little bit more 
 complicated.

The easiest way is to extend HttpCli by descending from the class and 
overriding the appropriate methods, instead of changing the code on the 
HttpProt unit itself.

dZ.

-- 
DZ-Jay [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

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

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


Re: [twsocket] UDP IP Spoofing Possible with ICS?

2008-01-07 Thread JLIST
Hello Arno,

 Is it possible to UDP IP spoofing with twsocket component?

 The only possibility is to use raw sockets with any component
 built around winsock API.

 You may want to use WinPCap instead
 which allows sending raw packets as well.

I see. In that case I suppose I can still use ICS for receiving
the packets and use WinPCAP for sending.

Thanks,
Jack

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


Re: [twsocket] Question.

2008-01-07 Thread DZ-Jay

On Jan 7, 2008, at 14:45, Andre Paradis wrote:

 So you confirm, I don't have any other way to support a new key in the 
 Http
 Header.

I'm not sure what it is that you are after...

dZ.

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


Re: [twsocket] Question.

2008-01-07 Thread Andre Paradis
Hi,

I have a question regarding WebService and HTTP Header.
Instead of using MSSOAP, I create manually the HTTP request for Soap
service. On some server, I need to set SoapAction in the Http Header, how
do you suggest supporting that? 


Thank you.


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


Re: [twsocket] Question.

2008-01-07 Thread DZ-Jay

On Jan 7, 2008, at 15:49, Andre Paradis wrote:

 Hi,

 I have a question regarding WebService and HTTP Header.
 Instead of using MSSOAP, I create manually the HTTP request for Soap
 service. On some server, I need to set SoapAction in the Http 
 Header, how
 do you suggest supporting that?

You could handle the OnRequestHeaderStart or OnRequestEnd events and 
inject the additional headers you need.  These events will be triggered 
right before or after the response headers are sent, respectively.

dZ.

-- 
DZ-Jay [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

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


Re: [twsocket] UDP IP Spoofing Possible with ICS?

2008-01-07 Thread Arno Garrels
JLIST wrote:
 Hello Arno,
 
 Is it possible to UDP IP spoofing with twsocket component?
 
 The only possibility is to use raw sockets with any component
 built around winsock API.
 
 You may want to use WinPCap instead
 which allows sending raw packets as well.
 
 I see. In that case I suppose I can still use ICS for receiving
 the packets and use WinPCAP for sending.

That's possible, yes.

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

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


Re: [twsocket] aspx page ICS Auto Fill, Post, and Read Answer

2008-01-07 Thread Terry Gignac
Thanks Dave and Francois,
I played with the Fiddler Debugging tool that gives you the Text that is
sent to the Server upon the request, which includes the edit fields from
the page.  This string was made up by the ViewState information for the
most part.

Using this as the SendString and then Posting seems to work, for at
least a time, as you get the resulting Page back in the RcvdStream.
Then, the Session may eventually somehow time out, as the WEB Page
forces you to exit and go back in, saying that the location has changed.
It happened after 4 hours earlier, and I have been using the same string
now for 3 hours...but I guess I need to investigate further to try to
revolve thisif that is possible.

There are no WEB Services for this public information, unfortunately.

If you have any further suggestions, that would be great.

Thanks,
Terry
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of David Colliver
Sent: Friday, January 04, 2008 2:00 PM
To: ICS support mailing
Subject: Re: [twsocket] aspx page ICS Auto Fill, Post, and Read Answer

When you POST a page, the values do not appear on the address bar. The
method to put them on the address bar is GET.

Francois is correct about submitting a page, however, .NET web pages
(.aspx) present other issues...

Each .NET web page has something called a viewstate (and also may be
loaded with a cookie). When submitting a .NET page, you should send the
viewstate back as well, failing to do so could cause undesirable
effects. The viewstate contains information about the page and various
values that have been set server side (such as DB content and other data
the programmer decided to store there).

Another issue is that the form fields are specially named, especially if
the form fields are built into a user control.


The way to do it would be to first collect the opening page (the one
with the form you want to submit), pick its fieldnames and values, then
submit it. Note that .NET (at least with .NET 1.1, not sure about 2.0
++) the form ALWAYS posts to itself.

The problems are not difficult to overcome. I don't have any examples.


It would be easier for you IF the site you want to post data to has a
webservice.

Hope this is of some assistance.

Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available


- Original Message -
From: Terry Gignac [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Friday, January 04, 2008 5:35 PM
Subject: [SPAM] [MessageLimit][sl] Re: [twsocket] aspx page ICS Auto
Fill, Post, and Read Answer


 Thank you for the information.  You are correct in that I would like
to
 try to use Delphi to accomplish this task.  We also have the option of
 using Visual Studio, but I try to use Delphi as many times as can be
 justified.

 I found examples of how to pick up the URL, the method (POST), the
 encoding (default in this case) from reading past postings and sample
 code, but do not think I found any example code showing how to utilize
 data fields that need to be filled in prior to posting.  Would you
have
 an example of this.  In this case, with the ASPX Page, after filling
in
 the data and submitting, they did not appear on the address line with
 the other input variables.

 Thanks,
 Terry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 On Behalf Of Francois Piette
 Sent: Friday, January 04, 2008 9:46 AM
 To: ICS support mailing
 Subject: [SPAM]  [MessageLimit][sl] Re: [twsocket] aspx page ICS Auto
 Fill, Post, and Read Answer

 You can't fill a HTML form using ICS, but you can send the same things
 as the browser do when you submit an HTML form.
 To sublit a form using the ICS HTTP client component, you must have a
 look at the source of the form and extract the action (that is the URL
 which will process the form), the method (that is either GET or POST),
 the encoding (how to format data) and of course all the data fields.
 Once you have all those elements, you can craft the same request as
the
 one generated by any browser.

 If you are not that much good at HTML forms, instaed of looking at the
 form's source code, you may use a sniffer and capture the request sent
 by the browser when you submit the form. Then you have just to see
what
 is sent and how it is sent. See the link page at my website for links
 some free sniffer.


 Contribute to the SSL Effort. Visit
http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware) Author of MidWare
 (Multi-tier framework, freeware) http://www.overbyte.be



 - Original Message -
 From: Terry Gignac [EMAIL PROTECTED]
 To: twsocket@elists.org
 Sent: Friday, January 04, 2008 2:12 PM
 Subject: [SPAM]  [MessageLimit][sl] [twsocket] aspx page ICS Auto
Fill,
 Post, and Read Answer



 I have been looking through peoples usage of ICS Components today and
 have  found it very 

Re: [twsocket] SMTP Component not ready

2008-01-07 Thread Jonathan M. Freedman
Dear List:

I write this code:

smtpCaribou-Host = [EMAIL PROTECTED] ;
smtpCaribou-Port = 25 ;
smtpCaribou-Connect() ;

and get a smtp component not ready error message.

Question...i don't think I need a twsocket connection first or do i?

The server is a timewarner company server.  I am a subscriber.  I want to
send mail directly from a program I have to individual client in my database
without going thru Outlook.  This is the first step I guess.

jf



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


Re: [twsocket] SMTP Component not ready

2008-01-07 Thread Hoby Smith
I am sure this is not relevant, but just in case... You do realize that you
have the address spelled wrong below?  I imagine it should be smtp, not
smpt?  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jonathan M. Freedman
Sent: Monday, January 07, 2008 7:06 PM
To: twsocket@elists.org
Subject: Re: [twsocket] SMTP Component not ready

Dear List:

I write this code:

smtpCaribou-Host = [EMAIL PROTECTED] ;
smtpCaribou-Port = 25 ;
smtpCaribou-Connect() ;

and get a smtp component not ready error message.

Question...i don't think I need a twsocket connection first or do i?

The server is a timewarner company server.  I am a subscriber.  I want to
send mail directly from a program I have to individual client in my database
without going thru Outlook.  This is the first step I guess.

jf



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









































































































































































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


Re: [twsocket] SMTP Component not ready

2008-01-07 Thread DZ-Jay

On Jan 7, 2008, at 20:06, Jonathan M. Freedman wrote:

 smtpCaribou-Host = [EMAIL PROTECTED] ;
 smtpCaribou-Port = 25 ;
 smtpCaribou-Connect() ;

 and get a smtp component not ready error message.

Are you sure you get the error on the Connect() call, or on a 
subsequent method call?  Keep in mind that the SmtpCli component is 
asynchronous, which means that it doesn't wait for the method to 
finish, but returns immediately.  So, you cannot call another method 
right after Connect because the component is not connected yet.  You 
have to use the events provided to call the next method.

dZ.

-- 
DZ-Jay [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

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


Re: [twsocket] aspx page ICS Auto Fill, Post, and Read Answer

2008-01-07 Thread Francois PIETTE
You have to go to the start page, maybe a login page to grab the session 
cookie, and then use it until it expires and then go back grab another one. 
The HTTP component support receiving and sending cookies.

--
[EMAIL PROTECTED]
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

- Original Message - 
From: Terry Gignac [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, January 07, 2008 11:58 PM
Subject: Re: [twsocket] aspx page ICS Auto Fill, Post, and Read Answer


 Thanks Dave and Francois,
 I played with the Fiddler Debugging tool that gives you the Text that is
 sent to the Server upon the request, which includes the edit fields from
 the page.  This string was made up by the ViewState information for the
 most part.

 Using this as the SendString and then Posting seems to work, for at
 least a time, as you get the resulting Page back in the RcvdStream.
 Then, the Session may eventually somehow time out, as the WEB Page
 forces you to exit and go back in, saying that the location has changed.
 It happened after 4 hours earlier, and I have been using the same string
 now for 3 hours...but I guess I need to investigate further to try to
 revolve thisif that is possible.

 There are no WEB Services for this public information, unfortunately.

 If you have any further suggestions, that would be great.

 Thanks,
 Terry


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 On Behalf Of David Colliver
 Sent: Friday, January 04, 2008 2:00 PM
 To: ICS support mailing
 Subject: Re: [twsocket] aspx page ICS Auto Fill, Post, and Read Answer

 When you POST a page, the values do not appear on the address bar. The
 method to put them on the address bar is GET.

 Francois is correct about submitting a page, however, .NET web pages
 (.aspx) present other issues...

 Each .NET web page has something called a viewstate (and also may be
 loaded with a cookie). When submitting a .NET page, you should send the
 viewstate back as well, failing to do so could cause undesirable
 effects. The viewstate contains information about the page and various
 values that have been set server side (such as DB content and other data
 the programmer decided to store there).

 Another issue is that the form fields are specially named, especially if
 the form fields are built into a user control.


 The way to do it would be to first collect the opening page (the one
 with the form you want to submit), pick its fieldnames and values, then
 submit it. Note that .NET (at least with .NET 1.1, not sure about 2.0
 ++) the form ALWAYS posts to itself.

 The problems are not difficult to overcome. I don't have any examples.


 It would be easier for you IF the site you want to post data to has a
 webservice.

 Hope this is of some assistance.

 Best regards,
 Dave Colliver.
 http://www.AshfieldFOCUS.com
 ~~
 http://www.FOCUSPortals.com - Local franchises available


 - Original Message -
 From: Terry Gignac [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Friday, January 04, 2008 5:35 PM
 Subject: [SPAM] [MessageLimit][sl] Re: [twsocket] aspx page ICS Auto
 Fill, Post, and Read Answer


 Thank you for the information.  You are correct in that I would like
 to
 try to use Delphi to accomplish this task.  We also have the option of
 using Visual Studio, but I try to use Delphi as many times as can be
 justified.

 I found examples of how to pick up the URL, the method (POST), the
 encoding (default in this case) from reading past postings and sample
 code, but do not think I found any example code showing how to utilize
 data fields that need to be filled in prior to posting.  Would you
 have
 an example of this.  In this case, with the ASPX Page, after filling
 in
 the data and submitting, they did not appear on the address line with
 the other input variables.

 Thanks,
 Terry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 On Behalf Of Francois Piette
 Sent: Friday, January 04, 2008 9:46 AM
 To: ICS support mailing
 Subject: [SPAM]  [MessageLimit][sl] Re: [twsocket] aspx page ICS Auto
 Fill, Post, and Read Answer

 You can't fill a HTML form using ICS, but you can send the same things
 as the browser do when you submit an HTML form.
 To sublit a form using the ICS HTTP client component, you must have a
 look at the source of the form and extract the action (that is the URL
 which will process the form), the method (that is either GET or POST),
 the encoding (how to format data) and of course all the data fields.
 Once you have all those elements, you can craft the same request as
 the
 one generated by any browser.

 If you are not that much good at HTML forms, instaed of looking at the
 form's source code, you may use a sniffer and capture the request sent
 by the browser when you submit the form. Then you have just to see
 what