[twsocket] HttpCli user authentication whent get()

2006-06-18 Thread xmedia
I tried to set the Username and Password field in my HttpCli component when
accessing password protected IP camera without any success. I always get 401
error. But in IE I can enter the same user name and password in the pop=up
window to access. I am wondering whether I did anything wrong. My code is:

HttpCli1-Username=;

HttpCli1-Password=;

HttpCli1-URL+192.168.1.98/image.hpg;

HttpCli1-Get();

 

Any help is appreciated! Thanks in advance.

-WAng

-- 
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] HttpCli user authentication whent get()

2006-06-18 Thread Francois PIETTE
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


- Original Message - 
From: xmedia [EMAIL PROTECTED]
To: twsocket@elists.org
Sent: Sunday, June 18, 2006 6:22 PM
Subject: [twsocket] HttpCli user authentication whent get()


I tried to set the Username and Password field in my HttpCli component when
 accessing password protected IP camera without any success. I always get 
 401
 error. But in IE I can enter the same user name and password in the pop=up
 window to access. I am wondering whether I did anything wrong. My code is:

 HttpCli1-Username=;

 HttpCli1-Password=;

 HttpCli1-URL+192.168.1.98/image.hpg;

 HttpCli1-Get();



 Any help is appreciated! Thanks in advance.

 -WAng

 -- 
 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] Help

2006-06-18 Thread Wilfried Mestdagh
Hello Jock,

Please use appropriatic subject. Many people will not even read a
subject without a given content !

 My program and the demo program work, as long as I do not send the
 attachment file.

You dont tell what the problem is. Since you say you get an error after
clicking Abort I assume it seems to take infinity to send the mail. To
check whatis going wrong, download SocketSpy (user made) and 'hang' it
between client and server.

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

Sunday, June 18, 2006, 16:17, Jock Terry wrote:

 I have a application that uses ics components for e-mailing a customer's
 purchase orders. The program is written in delphi 7 and when originally
 written worked fine, however the client that I wrote it for just started
 using it and it will not send the attachment that goes along with the email.

 My program and the demo program work, as long as I do not send the 
 attachment file.

 I get the same results for my program and for the demo send mail 
 program,  MailSnd1.pas. Below is the info from the demo program. The ICS
 component is version 3.0.0.343. I have tried various setting, such as 
 changing the default encoding.

 Connecting to SMTP server...
 220 smtp103.sbc.mail.mud.yahoo.com ESMTP
  220 smtp103.sbc.mail.mud.yahoo.com ESMTP
 RequestDone Rq=0 Error=0
 EHLO your_name
  EHLO your_name
 250-smtp103.sbc.mail.mud.yahoo.com
  250-smtp103.sbc.mail.mud.yahoo.com
 250-AUTH LOGIN PLAIN XYMCOOKIE
  250-AUTH LOGIN PLAIN XYMCOOKIE
 250-PIPELINING
  250-PIPELINING
 250 8BITMIME
  250 8BITMIME
 RequestDone Rq=10 Error=0
 AUTH LOGIN
  AUTH LOGIN
 334 VXNlcm5hbWU6
  334 VXNlcm5hbWU6
 amV0Y29tc3lzQHNiY2dsb2JhbC5uZXQ=
  amV0Y29tc3lzQHNiY2dsb2JhbC5uZXQ=
 334 UGFzc3dvcmQ6
  334 UGFzc3dvcmQ6
 amV0NTQ0NA==
  amV0NTQ0NA==
 235 ok, go ahead (#2.0.0)
  235 ok, go ahead (#2.0.0)
 RequestDone Rq=11 Error=0
 MAIL FROM:[EMAIL PROTECTED]
  MAIL FROM:[EMAIL PROTECTED]
 250 ok
  250 ok
 RequestDone Rq=2 Error=0
 RCPT TO:[EMAIL PROTECTED]
  RCPT TO:[EMAIL PROTECTED]
 250 ok
  250 ok
 RequestDone Rq=4 Error=0
 DATA
  DATA
 354 go ahead
  354 go ahead
  From: [EMAIL PROTECTED]
 Comments: This is a test
  To: [EMAIL PROTECTED]
  Subject: This is the message subject
  Sender: [EMAIL PROTECTED]
  Mime-Version: 1.0
  Content-Type: multipart/mixed;
   boundary== Multipart Boundary 0610060418
  Date: Sat, 10 Jun 2006 04:18:06 -0500
  X-Priority: 2
  Priority: urgent
  X-MSMail-Priority: High
  Message-ID: [EMAIL PROTECTED]
  Disposition-Notification-To: [EMAIL PROTECTED]
  X-Mailer: ICS SMTP Component V2.50
 
  This is a multipart MIME message.
 
  --= Multipart Boundary 0610060418
  Content-Type: text/plain; charset=iso-8859-1
  Content-Transfer-Encoding: 7bit
 
  This is the first line
  Then the second one
  The next one is empty
 
  The next one has only a single dot
  ..
  Finally the last one
 
  --= Multipart Boundary 0610060418
  Content-Type: image/gif;
  name=fp_small.gif
  Content-Transfer-Encoding: base64
  Content-Disposition: attachment;
  filename=fp_small.gif
 
  R0lGODlhXAB5APf/AP///wgICNbW1t7e3ufn5+/v7/f391JKSjkxMa2UlJyEhNa1tYxzc961
  /9EKpCAJzTC01+0BE5TYFPwDaouaGDxE9Ct1LYdTkElEcFQDZEBtCaDd/IHQpqbMMNMGsiAJ
 RequestDone Rq=5 Error=10004

 Note- I deleted the middle part of the file info. to reduce this email.

 I had to click on abort, after waiting 1 to 2 mins. And that's when I 
 got the above winsock error.

 BTW the connection is via DSL and a router.

 Can anyone give me some help as to what is going on or what I am doing
 wrong.

 Thanks for any help given


-- 
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] Help with SmtpCli

2006-06-18 Thread Arno Garrels
If I understand you correctly transfer hangs. Are you sure that
you pasted the last log lines, wasn't there a line .?
Have you tried another SMTP server yet?

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



Jock Terry wrote:
 I have a application that uses ics components for e-mailing a
 customer's purchase orders. The program is written in delphi 7 and
 when originally written worked fine, however the client that I wrote
 it for just started using it and it will not send the attachment that
 goes along with the email. 
 
 My program and the demo program work, as long as I do not send the
 attachment file.
 
 I get the same results for my program and for the demo send mail
 program,  MailSnd1.pas. Below is the info from the demo program. The
 ICS component is version 3.0.0.343. I have tried various setting,
 such as changing the default encoding.
 
 Connecting to SMTP server...
 220 smtp103.sbc.mail.mud.yahoo.com ESMTP
  220 smtp103.sbc.mail.mud.yahoo.com ESMTP
 RequestDone Rq=0 Error=0
 EHLO your_name
   EHLO your_name
 250-smtp103.sbc.mail.mud.yahoo.com
  250-smtp103.sbc.mail.mud.yahoo.com
 250-AUTH LOGIN PLAIN XYMCOOKIE
  250-AUTH LOGIN PLAIN XYMCOOKIE
 250-PIPELINING
  250-PIPELINING
 250 8BITMIME
  250 8BITMIME
 RequestDone Rq=10 Error=0
 AUTH LOGIN
   AUTH LOGIN
 334 VXNlcm5hbWU6
  334 VXNlcm5hbWU6
 amV0Y29tc3lzQHNiY2dsb2JhbC5uZXQ=
   amV0Y29tc3lzQHNiY2dsb2JhbC5uZXQ=
 334 UGFzc3dvcmQ6
  334 UGFzc3dvcmQ6
 amV0NTQ0NA==
   amV0NTQ0NA==
 235 ok, go ahead (#2.0.0)
  235 ok, go ahead (#2.0.0)
 RequestDone Rq=11 Error=0
 MAIL FROM:[EMAIL PROTECTED]
   MAIL FROM:[EMAIL PROTECTED]
 250 ok
  250 ok
 RequestDone Rq=2 Error=0
 RCPT TO:[EMAIL PROTECTED]
   RCPT TO:[EMAIL PROTECTED]
 250 ok
  250 ok
 RequestDone Rq=4 Error=0
 DATA
   DATA
 354 go ahead
  354 go ahead
   From: [EMAIL PROTECTED]
 Comments: This is a test
   To: [EMAIL PROTECTED]
   Subject: This is the message subject
   Sender: [EMAIL PROTECTED]
   Mime-Version: 1.0
   Content-Type: multipart/mixed;
   boundary== Multipart Boundary 0610060418
   Date: Sat, 10 Jun 2006 04:18:06 -0500
   X-Priority: 2
   Priority: urgent
   X-MSMail-Priority: High
   Message-ID: [EMAIL PROTECTED]
   Disposition-Notification-To: [EMAIL PROTECTED]
   X-Mailer: ICS SMTP Component V2.50
  
   This is a multipart MIME message.
  
   --= Multipart Boundary 0610060418
   Content-Type: text/plain; charset=iso-8859-1
   Content-Transfer-Encoding: 7bit
  
   This is the first line
   Then the second one
   The next one is empty
  
   The next one has only a single dot
   ..
   Finally the last one
  
   --= Multipart Boundary 0610060418
   Content-Type: image/gif;
   name=fp_small.gif
   Content-Transfer-Encoding: base64
   Content-Disposition: attachment;
   filename=fp_small.gif
  
  
 R0lGODlhXAB5APf/AP///wgICNbW1t7e3ufn5+/v7/f391JKSjkxMa2UlJyEhNa1tYxzc961   
 /9EKpCAJzTC01+0BE5TYFPwDaouaGDxE9Ct1LYdTkElEcFQDZEBtCaDd/IHQpqbMMNMGsiAJ
 RequestDone Rq=5 Error=10004
 
 Note- I deleted the middle part of the file info. to reduce this
 email. 
 
 I had to click on abort, after waiting 1 to 2 mins. And that's when I
 got the above winsock error.
 
 BTW the connection is via DSL and a router.
 
 Can anyone give me some help as to what is going on or what I am doing
 wrong.
 
 Thanks for any help given
-- 
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