Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-08

TFPWebProviderDataModule onBeforeRead problem

6 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé
to Leonardo M. Ramé
Leonardo M. Ram? wrote 5 lines
I'm sending a POST request to a TFPWebProviderDataModule and can see the content of post by reading the value of Request.Content. But, if I try to read Request.ContentFields, it is empty. Why?. --

If I send the same post message to "http://posttestserver.com/post", I get a positive result, and the content of my message is this:

Time: Thu, 25 Aug 11 07:00:30 -0700
Source ip: 200.80.219.194

Headers (Some may be inserted by server)
UNIQUE_ID = TlZVfq3sqvkAABzjFj0AAAAF
HTTP_HOST = posttestserver.com
HTTP_CONNECTION = close
HTTP_USER_AGENT = Mozilla/4.0 (compatible; Synapse) CONTENT_TYPE = application/x-www-form-urlencoded
CONTENT_LENGTH = 11
REMOTE_ADDR = 200.80.219.194
REMOTE_PORT = 34394
GATEWAY_INTERFACE = CGI/1.1
REQUEST_METHOD = POST
QUERY_STRING =
REQUEST_URI = /post.php
REQUEST_TIME = 1314280830

Post Params:
key: 'IdTurno' value: '100'

== Begin post body ==

== End post body ==

Hope it helps to figure out the problem.

Reply by email

Leonardo M. Ramé
to Leonardo M. Ramé
Leonardo M. Ram? wrote 35 lines
On 2011-08-25 11:18:48 -0300, Leonardo M. Ram? wrote: > I'm sending a POST request to a TFPWebProviderDataModule and can see the > content of post by reading the value of Request.Content. But, if I try > to read Request.ContentFields, it is empty. Why?. > > -- If I send the same post message to "http://posttestserver.com/post", I get a positive result, and the content of my message is this: Time: Thu, 25 Aug 11 07:00:30 -0700 Source ip: 200.80.219.194 Headers (Some may be inserted by server) UNIQUE_ID = TlZVfq3sqvkAABzjFj0AAAAF HTTP_HOST = posttestserver.com HTTP_CONNECTION = close HTTP_USER_AGENT = Mozilla/4.0 (compatible; Synapse) CONTENT_TYPE = application/x-www-form-urlencoded CONTENT_LENGTH = 11 REMOTE_ADDR = 200.80.219.194 REMOTE_PORT = 34394 GATEWAY_INTERFACE = CGI/1.1 REQUEST_METHOD = POST QUERY_STRING = REQUEST_URI = /post.php REQUEST_TIME = 1314280830 Post Params: key: 'IdTurno' value: '100' == Begin post body == == End post body ==

BTW, I'm using this from a THTTPApplication istead of using a CGI.

Reply by email

Unknown author
to Leonardo M. Ramé
Leonardo M. Ram? wrote 5 lines
On 2011-08-25 11:21:58 -0300, Leonardo M. Ram? wrote: > On 2011-08-25 11:18:48 -0300, Leonardo M. Ram? wrote: >> I'm sending a POST request to a TFPWebProviderDataModule and can see the >> content of post by reading the value of Request.Content. But, if I try >> to read Request.ContentFields, it is empty. Why?.

A bug.

Please try revision 18838. It's a very small fix.

Michael.

Reply by email

Leonardo M. Ramé
to Unknown author
Show quoted text 15 lines
On Thu, 25 Aug 2011, Leonardo M. Ram? wrote: >On 2011-08-25 11:21:58 -0300, Leonardo M. Ram? wrote: >>On 2011-08-25 11:18:48 -0300, Leonardo M. Ram? wrote: >>>I'm sending a POST request to a TFPWebProviderDataModule and can see the >>>content of post by reading the value of Request.Content. But, if I try >>>to read Request.ContentFields, it is empty. Why?. A bug. Please try revision 18838. It's a very small fix. Michael.

Thanks, it works now.

Reply by email

Unknown author
to Leonardo M. Ramé
Leonardo M. Ram? wrote 18 lines
On 2011-08-25 17:16:15 +0200, wrote: > > > On Thu, 25 Aug 2011, Leonardo M. Ram? wrote: > >> On 2011-08-25 11:21:58 -0300, Leonardo M. Ram? wrote: >>> On 2011-08-25 11:18:48 -0300, Leonardo M. Ram? wrote: >>>> I'm sending a POST request to a TFPWebProviderDataModule and can see the >>>> content of post by reading the value of Request.Content. But, if I try >>>> to read Request.ContentFields, it is empty. Why?. > > A bug. > > Please try revision 18838. It's a very small fix. > > Michael. Thanks, it works now.

Great :-)

Michael.

Reply by email