 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Amel Guest
|
Posted: Fri Jan 30, 2004 3:27 pm Post subject: HTTP Connection |
|
|
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
|
Posted: Fri Jan 30, 2004 11:04 pm Post subject: Re: HTTP Connection |
|
|
"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
|
Posted: Mon Feb 02, 2004 9:34 am Post subject: Re: HTTP Connection |
|
|
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
|
Posted: Mon Feb 02, 2004 9:45 am Post subject: Re: HTTP Connection |
|
|
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
|
Posted: Mon Feb 02, 2004 7:20 pm Post subject: Re: HTTP Connection |
|
|
"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
|
Posted: Tue Jan 31, 2006 8:08 pm Post subject: Re: HTTP connection |
|
|
"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
|
Posted: Tue Jan 31, 2006 10:44 pm Post subject: Re: HTTP connection |
|
|
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
|
Posted: Wed Feb 01, 2006 12:26 am Post subject: Re: HTTP connection |
|
|
"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
|
Posted: Wed Feb 01, 2006 8:23 am Post subject: Re: HTTP connection |
|
|
| 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
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
|
Posted: Wed Feb 01, 2006 11:19 am Post subject: Re: HTTP connection |
|
|
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
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
|
Posted: Wed Feb 01, 2006 12:25 pm Post subject: Re: HTTP connection |
|
|
| 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
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 |
|
 |
|
|
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
|
|