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?.
Mailing lists / lazarus / 2011-08
TFPWebProviderDataModule onBeforeRead problem
6 messages · 2 people ·
- LLeonardo M. Ramé 4
- UUnknown author 2
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Leonardo M. Ram? wrote 5 lines
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.
Leonardo M. Ram? wrote 35 lines
BTW, I'm using this from a THTTPApplication istead of using a CGI.
Leonardo M. Ram? wrote 5 lines
A bug.
Please try revision 18838. It's a very small fix.
Michael.
Show quoted text 15 lines
Thanks, it works now.
Leonardo M. Ram? wrote 18 lines
Great :-)
Michael.
