Modify Incoming Request/Outgoing Response

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Modify Incoming Request/Outgoing Response

Justin Will
I am trying to mess around with some request info in 4D before A4D executes
the incoming stream and outgoing response.  I can see how to edit the
outgoing response quite easily.  I am having bad luck getting the incoming
stream modified however.

As I understand things I will have to switch from using A4D Execute Stream
Request to A4D Execute BLOB Request.  I am receiving the full request with
NTK into a blob then passing that blob to A4D Execute Blob Request like
this
First I comment this out
$httpStatus:=A4D Execute stream request
($inSocket;$requestInfo;$responseHeaderNames;$responseHeaderValues;$response
)

Then I use this instead.
$httpStatus:=A4D Execute stream request
($blob;$requestInfo;$responseHeaderNames;$responseHeaderValues;$response)

My first request yields an HTTP 400 error and my second crashes.  Does
anyone have tips on switch from Execute Stream to Execute Blob?

Thanks
Justin Will


_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: Modify Incoming Request/Outgoing Response

Aparajita Fishman
> Then I use this instead.
> $httpStatus:=A4D Execute stream request
> ($blob;$requestInfo;$responseHeaderNames;$responseHeaderValues;$response)

That should be 'A4D Execute BLOB request’. If that isn’t a typo, that’s your problem.

Regards,

  Aparajita

_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/