BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HTTP Connection

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Amel
Guest





PostPosted: Fri Jan 30, 2004 3:27 pm    Post subject: HTTP Connection Reply with quote



Hi All!

Does any body can tell me wich component I can use to send a HTTP response
to a HTTP Server?


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Jan 30, 2004 11:04 pm    Post subject: Re: HTTP Connection Reply with quote




"Amel" <amel.gonzalez (AT) kinetos (DOT) com> wrote


Quote:
Does any body can tell me wich component I can use to
send a HTTP response to a HTTP Server?

A response? Don't you mean a request instead?

There are numerous components available for different purposes. What
exactly do you want to accomplish exactly? Do you just want to download
files or HTML content? Do you just want to display the content to the user,
or do you want to parse it yourself?

Gambit



Back to top
Amel
Guest





PostPosted: Mon Feb 02, 2004 9:34 am    Post subject: Re: HTTP Connection Reply with quote



I need to send a text to a server using HTTP.

"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> escribió en el
mensaje news:401ae170$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Amel" <amel.gonzalez (AT) kinetos (DOT) com> wrote in message
news:401ad994$1 (AT) newsgroups (DOT) borland.com...

Does any body can tell me wich component I can use to
send a HTTP response to a HTTP Server?

A response? Don't you mean a request instead?

There are numerous components available for different purposes. What
exactly do you want to accomplish exactly? Do you just want to download
files or HTML content? Do you just want to display the content to the
user,
or do you want to parse it yourself?

Gambit





Back to top
Amel
Guest





PostPosted: Mon Feb 02, 2004 9:45 am    Post subject: Re: HTTP Connection Reply with quote

I need to do a Voice over IP software based in SIP protocol.
For this, I need to send and receive text using HTTP.



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Feb 02, 2004 7:20 pm    Post subject: Re: HTTP Connection Reply with quote


"Amel" <amel.gonzalez (AT) kinetos (DOT) com> wrote

Quote:
I need to send a text to a server using HTTP.

You still need to provide more information. What kind of text exactly? How
should it be sent - using the GET or POST method? What is the server
actually expecting?


Gambit



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Jan 31, 2006 8:08 pm    Post subject: Re: HTTP connection Reply with quote


"Man Utd" <alanpltseNOSPAM (AT) yahoo (DOT) com.au> wrote


Quote:
Anyone knows what does it meant by using HTTP connection from
.. one machine, eg. my machine, to another remote machine, eg. one
machine in another city ?

I do not understand what you are asking for. Please clearify.


Gambit



Back to top
Man Utd
Guest





PostPosted: Tue Jan 31, 2006 10:44 pm    Post subject: Re: HTTP connection Reply with quote

What I am trying to do is to do a file transfer between 2 machines.
I tried using TIdFTP to grab a file from a remote server.
Besides using FTP, is there anything using HTTP protocol to grab the same
file I did using by FTP?


"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote

Quote:

"Man Utd" <alanpltseNOSPAM (AT) yahoo (DOT) com.au> wrote in message
news:43df3f9e (AT) newsgroups (DOT) borland.com...

Anyone knows what does it meant by using HTTP connection from
. one machine, eg. my machine, to another remote machine, eg. one
machine in another city ?

I do not understand what you are asking for. Please clearify.


Gambit





Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Feb 01, 2006 12:26 am    Post subject: Re: HTTP connection Reply with quote


"Man Utd" <alanpltseNOSPAM (AT) yahoo (DOT) com.au> wrote


Quote:
What I am trying to do is to do a file transfer between 2
machines.I tried using TIdFTP to grab a file from a remote
server. Besides using FTP, is there anything using HTTP
protocol to grab the same file I did using by FTP?

Just like the FTP protocol requires an FTP server to be running that an FTP
client can connect to, so too does the HTTP protocol require an HTTP server
to be running for an HTTP client to connect to. Indy does have TIdHTTP and
TIdHTTPServer components available. The transfer operations between FTP and
HTTP are very different, though.


Gambit



Back to top
Francois Piette [ICS & Mi
Guest





PostPosted: Wed Feb 01, 2006 8:23 am    Post subject: Re: HTTP connection Reply with quote

Quote:
Anyone knows what does it meant by using HTTP
connection from one machine,
eg. my machine, to another remote machine,
eg. one machine in another city ?

You have to use a HTTP server on one machine and a HTTP client on the other
machine.
A HTTP server is commonly named a web server Smile
You can build you own custom HTTP server using a HTTP server component such
as the one you can find in ICS (download full source code from
http://www.overbyte.be and look at WebServ demo program). You can build your
own HTTP client using a HTTP client component (again for example using the
one from ICS. See HttpTst demo program).

Using ICS, you can also use the SSL version (HTTPS and FTPS). ICS-SSL
include both client and server components for both HTTPS and FTPS protocols.
SSL stuff is based on OpenSSL.

You can also design you own client/server protocol using TWSocket and
TWSocketServer component. You may reinvent the FTP or HTTP wheels, but this
way you can build something which fits exactly your needs.

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




Back to top
Man Utd
Guest





PostPosted: Wed Feb 01, 2006 11:19 am    Post subject: Re: HTTP connection Reply with quote

If the machine has a web server running, can I just use TIdHTTP to connect
to the machine and grab a file ?
Any example ?

"Francois Piette [ICS & Midware]" <francois.piette (AT) overbyte (DOT) be> wrote in
message news:43e06ed6$1 (AT) newsgroups (DOT) borland.com...
Quote:
Anyone knows what does it meant by using HTTP
connection from one machine,
eg. my machine, to another remote machine,
eg. one machine in another city ?

You have to use a HTTP server on one machine and a HTTP client on the
other
machine.
A HTTP server is commonly named a web server Smile
You can build you own custom HTTP server using a HTTP server component
such
as the one you can find in ICS (download full source code from
http://www.overbyte.be and look at WebServ demo program). You can build
your
own HTTP client using a HTTP client component (again for example using the
one from ICS. See HttpTst demo program).

Using ICS, you can also use the SSL version (HTTPS and FTPS). ICS-SSL
include both client and server components for both HTTPS and FTPS
protocols.
SSL stuff is based on OpenSSL.

You can also design you own client/server protocol using TWSocket and
TWSocketServer component. You may reinvent the FTP or HTTP wheels, but
this
way you can build something which fits exactly your needs.

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






Back to top
Francois Piette [ICS & Mi
Guest





PostPosted: Wed Feb 01, 2006 12:25 pm    Post subject: Re: HTTP connection Reply with quote

Quote:
If the machine has a web server running,
can I just use TIdHTTP to connect
to the machine and grab a file ?
Any example ?

Using ICS :

Create a new project, drop a HTTP component, a button and a memo on a form.
In the button OnClick event handler, enter the following code:

HttpCli1.Url := 'http://www.myserver.com/files/demo.zip';
HttpCli1.RcvdStream := TFileStream.Create('demo.zip', fmCreate);
HttpCli1.Get;
if HttpCLi1.StatusCode <> 200 then
Memo1.Lines.Add('Failed: ' + HttpCli1.ReasonPhrase)
else
Memo1.Lines.Add('Success');
HttpCli1.RcvdStream.Free;


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





Quote:

"Francois Piette [ICS & Midware]" <francois.piette (AT) overbyte (DOT) be> wrote in
message news:43e06ed6$1 (AT) newsgroups (DOT) borland.com...
Anyone knows what does it meant by using HTTP
connection from one machine,
eg. my machine, to another remote machine,
eg. one machine in another city ?

You have to use a HTTP server on one machine and a HTTP client on the
other
machine.
A HTTP server is commonly named a web server Smile
You can build you own custom HTTP server using a HTTP server component
such
as the one you can find in ICS (download full source code from
http://www.overbyte.be and look at WebServ demo program). You can build
your
own HTTP client using a HTTP client component (again for example using
the
one from ICS. See HttpTst demo program).

Using ICS, you can also use the SSL version (HTTPS and FTPS). ICS-SSL
include both client and server components for both HTTPS and FTPS
protocols.
SSL stuff is based on OpenSSL.

You can also design you own client/server protocol using TWSocket and
TWSocketServer component. You may reinvent the FTP or HTTP wheels, but
this
way you can build something which fits exactly your needs.

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








Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.