Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread ServerRequest Help Please
Wed, Aug 22 2012 2:31 PMPermanent Link

mddmx

I am trying to communicate with the ServerRequest object to a PHP page.  My parameters are received just fine, however RequestContent is always blank (empty).

I have installed Fiddler2 and see the Get Request and the headers, however the TEXT is empty.  

Can anyone shed some light onto what I might be doing incorrectly ?  

ServerRequest1.RequestContent.Clear;
ServerRequest1.RequestContent.Add('The big gray man jumped over the lazy dog');
ServerRequest1.RequestHeaders.Clear;
ServerRequest1.RequestHeaders.NameValueSeparator := '=';
ServerRequest1.RequestHeaders.Add('Content-Type = text/xml; charset=utf-8');
ServerRequest1.RequestHeaders.Add('Content-Length =' + IntToStr(Length(ServerRequest1.RequestContent.Text)));
ServerRequest1.Execute;

Thank you ...
Wed, Aug 22 2012 3:05 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< I am trying to communicate with the ServerRequest object to a PHP page.
My parameters are received just fine, however RequestContent is always blank
(empty).

I have installed Fiddler2 and see the Get Request and the headers, however
the TEXT is empty. >>

Your issue is with your name-value separator - you need to use the colon
instead (the default):

  ServerRequest1.RequestContent.Clear;
  ServerRequest1.RequestContent.Add('The big gray man jumped over the lazy
dog');
  ServerRequest1.RequestHeaders.Clear;
  ServerRequest1.RequestHeaders.Add('Content-Type: text/xml;
charset=utf-8');
  ServerRequest1.RequestHeaders.Add('Content-Length:' +
IntToStr(Length(ServerRequest1.RequestContent.Text)));
  ServerRequest1.Execute;

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Aug 22 2012 4:23 PMPermanent Link

mddmx

That's it !  Thank you very much.  

btw .... I have been waiting for a product like this for a long time.   I like the road you are on.


"Tim Young [Elevate Software]" wrote:

Your issue is with your name-value separator - you need to use the colon
instead (the default):
Wed, Aug 22 2012 8:03 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< btw .... I have been waiting for a product like this for a long time.   I
like the road you are on. >>

Thanks, I'm glad that you like it. Smile

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Image