Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Get Internet File Size (HTTP) Posted by porodoro on 24 Feb 2006 at 11:19 PM

Is it possible in delphi ? if yes , can you post some working code ?.


ThankS
Report
Re: Get Internet File Size (HTTP) Posted by zibadian on 25 Feb 2006 at 1:00 AM
This message was edited by zibadian at 2006-2-25 1:2:7

:
: Is it possible in delphi ? if yes , can you post some working code ?.
:
:
: ThankS
:
Yes:
  NMHTTP1.Host := 'www.somesite.com';
  NMHTTP1.Get;
  ShowMessage(Format('Size: %d', [Length(NMHTTP1.Body)+Length(NMHTTP1.Header)]);


Note: the automatic formatting changes the name of the component used. In the edit box you see the name as I typed it.
Report
Re: Get Internet File Size (HTTP) Posted by porodoro on 25 Feb 2006 at 2:18 AM
: This message was edited by zibadian at 2006-2-25 1:2:7

: :
: : Is it possible in delphi ? if yes , can you post some working code ?.
: :
: :
: : ThankS
: :
: Yes:
:
:   NMHTTP1.Host := 'www.somesite.com';
:   NMHTTP1.Get;
:   ShowMessage(Format('Size: %d', [Length(NMHTTP1.Body)+Length(NMHTTP1.Header)]);
: 

:
: Note: the automatic formatting changes the name of the component used. In the edit box you see the name as I typed it.
:
Whitch component i have to install for this to work?
Thanks.

Report
Re: Get Internet File Size (HTTP) Posted by zibadian on 25 Feb 2006 at 4:23 AM
: : This message was edited by zibadian at 2006-2-25 1:2:7

: : :
: : : Is it possible in delphi ? if yes , can you post some working code ?.
: : :
: : :
: : : ThankS
: : :
: : Yes:
: :
: :   NMHTTP1.Host := 'www.somesite.com';
: :   NMHTTP1.Get;
: :   ShowMessage(Format('Size: %d', [Length(NMHTTP1.Body)+Length(NMHTTP1.Header)]);
: : 

: :
: : Note: the automatic formatting changes the name of the component used. In the edit box you see the name as I typed it.
: :
: Whitch component i have to install for this to work?
: Thanks.
:
:
This code uses the TNMHTTP component, but you could also use the TidHTTP component.
Report
Re: Get Internet File Size (HTTP) Posted by porodoro on 25 Feb 2006 at 5:16 AM
: : : This message was edited by zibadian at 2006-2-25 1:2:7

: : : :
: : : : Is it possible in delphi ? if yes , can you post some working code ?.
: : : :
: : : :
: : : : ThankS
: : : :
: : : Yes:
: : :
: : :   NMHTTP1.Host := 'www.somesite.com';
: : :   NMHTTP1.Get;
: : :   ShowMessage(Format('Size: %d', [Length(NMHTTP1.Body)+Length(NMHTTP1.Header)]);
: : : 

: : :
: : : Note: the automatic formatting changes the name of the component used. In the edit box you see the name as I typed it.
: : :
: : Whitch component i have to install for this to work?
: : Thanks.
: :
: :
: This code uses the TNMHTTP component, but you could also use the TidHTTP component.
:
I searched the listbox items 1 by 1 , but i cant find the class name.
Also i've searched on google but i got no results......

Report
Re: Get Internet File Size (HTTP) Posted by zibadian on 25 Feb 2006 at 6:46 AM
This message was edited by zibadian at 2006-2-25 6:56:3

: : : : This message was edited by zibadian at 2006-2-25 1:2:7

: : : : :
: : : : : Is it possible in delphi ? if yes , can you post some working code ?.
: : : : :
: : : : :
: : : : : ThankS
: : : : :
: : : : Yes:
: : : :
: : : :   NMHTTP1.Host := 'www.somesite.com';
: : : :   NMHTTP1.Get;
: : : :   ShowMessage(Format('Size: %d', [Length(NMHTTP1.Body)+Length(NMHTTP1.Header)]);
: : : : 

: : : :
: : : : Note: the automatic formatting changes the name of the component used. In the edit box you see the name as I typed it.
: : : :
: : : Whitch component i have to install for this to work?
: : : Thanks.
: : :
: : :
: : This code uses the TNMHTTP component, but you could also use the TidHTTP component.
: :
: I searched the listbox items 1 by 1 , but i cant find the class name.
: Also i've searched on google but i got no results......
:
:
TNMHTTP is part of the FastNet components, and TidHTTP of Indy.

I got 559 hits on TidHTTP using google: http://www.google.nl/search?q=tidhttp

The first being: How do I use a TIdHTTP with a HTTP Proxy?


Report
Re: Get Internet File Size (HTTP) Posted by porodoro on 25 Feb 2006 at 10:26 AM
This message was edited by porodoro at 2006-2-25 10:27:2

: This message was edited by zibadian at 2006-2-25 6:56:3

: : : : : This message was edited by zibadian at 2006-2-25 1:2:7

: : : : : :
: : : : : : Is it possible in delphi ? if yes , can you post some working code ?.
: : : : : :
: : : : : :
: : : : : : ThankS
: : : : : :
: : : : : Yes:
: : : : :
: : : : :   NMHTTP1.Host := 'www.somesite.com';
: : : : :   NMHTTP1.Get;
: : : : :   ShowMessage(Format('Size: %d', [Length(NMHTTP1.Body)+Length(NMHTTP1.Header)]);
: : : : : 

: : : : :
: : : : : Note: the automatic formatting changes the name of the component used. In the edit box you see the name as I typed it.
: : : : :
: : : : Whitch component i have to install for this to work?
: : : : Thanks.
: : : :
: : : :
: : : This code uses the TNMHTTP component, but you could also use the TidHTTP component.
: : :
: : I searched the listbox items 1 by 1 , but i cant find the class name.
: : Also i've searched on google but i got no results......
: :
: :
: TNMHTTP is part of the FastNet components, and TidHTTP of Indy.
:
: I got 559 hits on TidHTTP using google: http://www.google.nl/search?q=tidhttp
:
: The first being: How do I use a TIdHTTP with a HTTP Proxy?
:
:
:
Indy's website(http://www.indyproject.org/) seems to be offline . I will try again later..
Anyway thanks for your time.



Report
Re: Get Internet File Size (HTTP) Posted by porodoro on 27 Feb 2006 at 8:07 AM
This message was edited by porodoro at 2006-2-27 8:10:41

: This message was edited by porodoro at 2006-2-25 10:27:2

: : This message was edited by zibadian at 2006-2-25 6:56:3

: : : : : : This message was edited by zibadian at 2006-2-25 1:2:7

: : : : : : :
: : : : : : : Is it possible in delphi ? if yes , can you post some working code ?.
: : : : : : :
: : : : : : :
: : : : : : : ThankS
: : : : : : :
: : : : : : Yes:
: : : : : :
: : : : : :   NMHTTP1.Host := 'www.somesite.com';
: : : : : :   NMHTTP1.Get;
: : : : : :   ShowMessage(Format('Size: %d', [Length(NMHTTP1.Body)+Length(NMHTTP1.Header)]);
: : : : : : 

: : : : : :
: : : : : : Note: the automatic formatting changes the name of the component used. In the edit box you see the name as I typed it.
: : : : : :
: : : : : Whitch component i have to install for this to work?
: : : : : Thanks.
: : : : :
: : : : :
: : : : This code uses the TNMHTTP component, but you could also use the TidHTTP component.
: : : :
: : : I searched the listbox items 1 by 1 , but i cant find the class name.
: : : Also i've searched on google but i got no results......
: : :
: : :
: : TNMHTTP is part of the FastNet components, and TidHTTP of Indy.
: :
: : I got 559 hits on TidHTTP using google: http://www.google.nl/search?q=tidhttp
: :
: : The first being: How do I use a TIdHTTP with a HTTP Proxy?
: :
: :
: :
: Indy's website(http://www.indyproject.org/) seems to be offline . I will try again later..
: Anyway thanks for your time.
:
I've installed indy 10 , but when i run the project , the screen freezes and this window pops up :
http://img516.imageshack.us/img516/8716/ax12pw.jpg[/img]
i've searched for the file , but cant find it in the installation folder..

edit : it happens with all objects ! , whats going on ? i used the self installation program to install it..





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.