AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi TIdHTTP (client) WriteStream - some problem with indy buffer
Thema durchsuchen
Ansicht
Themen-Optionen

TIdHTTP (client) WriteStream - some problem with indy buffer

Ein Thema von marconi8 · begonnen am 3. Aug 2003 · letzter Beitrag vom 7. Aug 2003
Antwort Antwort
marconi8

Registriert seit: 13. Jul 2003
19 Beiträge
 
#1

TIdHTTP (client) WriteStream - some problem with indy buffer

  Alt 3. Aug 2003, 21:23
people i cannot find in indy help why i got this error...

1. my client application is:
TIdHTTP

2. my server application is:
TIdHTTPServer

3. now client app makes this:

[delphi]
AStream:=TFileStream.Create('readme.txt',fmOpenRea d);

with client do //client is name of TIdHTTP component
begin
try
OpenWriteBuffer(5);
WriteStream(AStream);
CloseWriteBuffer;
except
CancelWriteBuffer;
AStream.Free;
end;
end;


when WriteStream performs i get the error in client app,

error is like : error in parsing command, one word said i cannot copy file trough network into server side

i must to copy with stream file into server....


how can i make this ? and how to make writestream in client withoput errors


thanks
  Mit Zitat antworten Zitat
Benutzerbild von DataCool
DataCool

Registriert seit: 10. Feb 2003
Ort: Lingen
909 Beiträge
 
Delphi 10.3 Rio
 
#2

Re: TIdHTTP (client) WriteStream - some problem with indy bu

  Alt 4. Aug 2003, 22:09
Hi,

why did you use TIdHttpServer instead of TIdTcpServer and TidTcpClient ?

before you open the writebuffer to send the stream, did you open the connection ?

Which kind of error message did you get ?
Der Horizont vieler Menschen ist ein Kreis mit Radius Null, und das nennen sie ihren Standpunkt.
  Mit Zitat antworten Zitat
marconi8

Registriert seit: 13. Jul 2003
19 Beiträge
 
#3

Re: TIdHTTP (client) WriteStream - some problem with indy bu

  Alt 7. Aug 2003, 11:10
i use TIdHTTP client /server because this protokol (http) can work with proxy.

using TIdTCP client /server i cannot find options for proxy using with connection ....


but in TIdHTTP client component is present proxy option,


can you something to advice to me about working with proxy ?

using TIDTcp client/server i can without any problems send from peer connection to the server any commands, and server without problems will catch them, i also can without problems to make data exchange , i use writestream and on the server side readstream, it works normally using tIdtcp client /server

but what about TIdHTTP ????????

with tIDhttp client i send command but server does not makes any response to thhe client, why ?


thanks
  Mit Zitat antworten Zitat
Benutzerbild von DataCool
DataCool

Registriert seit: 10. Feb 2003
Ort: Lingen
909 Beiträge
 
Delphi 10.3 Rio
 
#4

Re: TIdHTTP (client) WriteStream - some problem with indy bu

  Alt 7. Aug 2003, 14:49
Hi,

you need the Http communication to work over a proxy server, that's ok.
I think the mistake is not that the ServerSocker is not active

so what could be the error reason ?! I think you've some problems to establish the connection to the server, because of the proxy.

So, which proxy settings you have ?

Expand the proxyParam property in the object inspector from delphi and enter your settings for the proxy server, i hope that it will work then.

If there's still an error, please tell me excatly which error message occur and please post some of your THttpSever code.

regards,

DataCool
Der Horizont vieler Menschen ist ein Kreis mit Radius Null, und das nennen sie ihren Standpunkt.
  Mit Zitat antworten Zitat
marconi8

Registriert seit: 13. Jul 2003
19 Beiträge
 
#5

Re: TIdHTTP (client) WriteStream - some problem with indy bu

  Alt 7. Aug 2003, 22:00
i have solved this problem, problem was = my big error

if i use for string data exchange tcp client/server then on the served side in the tIdTcpserver i can create any command name in commandhandler list, and if i send from tidtcp client command
like sendCmd('myOvnCommand',1) then all will works fine


but if i write this command in TIdHTTP server component, for example
in TIDHttp server .commandhandler will be created command = "myOvnCommand" then if client makes this = sendCmd("myOvnCommand",1) then server executes command onother command, because i have not readed before my app starting indy help, three is writed that true commands for tidhttp server are only get,post,head,
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:53 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz