[twsocket] Intercept Http Request Headers and Alter Them

2008-03-18 Thread wayne forrest
I am looking for a way to PARSE and ALTER http request headers.

Currently I have the Header in a STRING, and want to ADD Headers if they do
not EXIST.

I am not sure what Class to use: I have looked at

var
web : TWebRequest;

web := TWebRequest.Create;
web.Content := s; // set the Header , not even sure this is correct.

any help appreciated.





-- 
C: 076 337 4368
T: 021 880 2037
F: 021 880 2530
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] IP Camera

2008-03-18 Thread zayin

For anyone interested in the IP Camera quest.

It is a SkpyIPCam310.

I ended up using GetASync with http://address/goform/video.

Thanks to all who commented.

Mark

  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Éric Fleming Bonilha
Sent: Friday, March 14, 2008 12:07 PM
To: ICS support mailing
Subject: Re: [twsocket] IP Camera

Hi Mark,

Actually the Digifort architecture is very complex because we need to have
compatibility with a lot of different IP cameras (We have now support for
250 different models) and we support a lot of streaming protocols, but the
base concept is simple.

Do you want to grab images from what IP Camera? What is the model? JPEG or
MPEG-4 streaming?

Éric

- Original Message -
From: zayin [EMAIL PROTECTED]
To: 'ICS support mailing' twsocket@elists.org
Sent: Friday, March 14, 2008 1:09 PM
Subject: Re: [twsocket] IP Camera



Hi Éric,

Very cool.

Would you have a small bit of demo source code for getting the image from
the camera you would like to share?

Thanks,

Mark



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Éric Fleming Bonilha
Sent: Friday, March 14, 2008 11:03 AM
To: ICS support mailing
Subject: Re: [twsocket] IP Camera

Hello Mark

My software Digifort www.digifort.com.br is all written in Delphi / ICS

Éric
- Original Message -
From: zayin [EMAIL PROTECTED]
To: 'ICS support mailing' twsocket@elists.org
Sent: Friday, March 14, 2008 12:49 PM
Subject: [twsocket] IP Camera



 Hi,

 Has anyone done any work with getting data/images from IP cameras using
 ICS?
 Seems to be a series of JPGs are sent from the camera.

 Ciao,

 Mark



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Intercept Http Request Headers and Alter Them

2008-03-18 Thread RTT
This is a very simple parse solution, but works.

HeaderList := TStringList.Create;
HeaderList.NameValueSeparator := ':';
HeaderList.Text := YourHeaderString; //must be a string with 
header items delimited by carriage return and line feed, as it came in 
the raw request.

In this case you get a strings list where the names are the headers 
fields and the values are the fields data.
you can easily consult/add/change a field.
Example:
  i:=HeaderList.IndexOfName('Content-length');
  HeaderList.Values['Connection'] := ' Keep-Alive';
  HeaderList.Values['Transfer-Encoding'] := ' chunked';

To transform again in raw header
YourHeaderString:=HeaderList.Text;

 I am looking for a way to PARSE and ALTER http request headers.

 Currently I have the Header in a STRING, and want to ADD Headers if they do
 not EXIST.

 I am not sure what Class to use: I have looked at

 var
 web : TWebRequest;

 web := TWebRequest.Create;
 web.Content := s; // set the Header , not even sure this is correct.

 any help appreciated.





   

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Delphi version

2008-03-18 Thread Jose Alberto Ortega Rojas
Hi to all

Wich Delphi version i need for use ICS???

thanks


Jose Alberto Ortega Rojas
Consultores en Sistemas Software, S.C.
Fco. Sarabia 1403 Col. Primero de Mayo
Cd. Madero, Tamaulipas, MEXICO CP 89450
Tel. 52 (833) 210-44-55
[EMAIL PROTECTED]
www.consis.com.mx

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Cathing window messages for HttpSrv

2008-03-18 Thread Bjørnar Nielsen
I'm using the THttpSrv in a thread, and want to catch the windows message to 
the server. How is this possible?

My messagepump int the execute of the thread is like this:

while(!Terminated  GetMessage(msg, 0, 0, 0))

{

   switch(msg.message)

   {

   case WM_CUSTOM_SET_SERVER_SETTINGS:

  SetServerSettings((ServerSettings*)msg.wParam);

  break;



   default:

  TranslateMessage(msg);

  DispatchMessage(msg);

  break;

   }

}



How can I catch FD_ACCEPT and other messages and get the receiving control for 
this message? I Use ICS V6 and don't understand how the TIcsWndHandler works. 
Does anyone have examples for this?





Regards Bjørnar


No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 17.03.2008 
10:48

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be