You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proxy : Add a Sampler Creator to allow plugging HTTP based samplers using potentially non textual POST Body (AMF, Silverlight...) and customizing them for others
#2735
Closed
asfimport opened this issue
Feb 15, 2012
· 4 comments
@pmouawad (Bug 52674):
It would be useful to have the ability to plug a Sampler Customizer that depending on content type.
One example I need currently is the following:
For GWT samplers for example it would be useful to be able to directly set element.setProperty(HTTPSamplerBase.POST_BODY_RAW, useRaw, HTTPSamplerBase.POST_BODY_RAW_DEFAULT);
Another requirement I have is to be able to customize created sampler,
A direct use I see is for example a SilverLight or Flex protocol, doing this will enable plugins to implement a factory and use current implementations of Proxy, ProxyControl and HttpRequestHdr.
This could be done by delaying sampler creation until rawPostBody and contentType are available in HttpRequestHdr, once these are available , a factory could be called with content type , this would enable plugging other Samplers than just HttpSampler.
@pmouawad (migrated from Bugzilla):
Hello,
I made some thorough testing of the code.
I also implemented an Binary (POST body) based protocol successfully by implementing a SamplerCreator subclass.
I think this feature will be very useful to allow recording protocols as AMF , Silverlight by plugins.
Can I commit it or you want to review it first ?
Thanks
URL: http://svn.apache.org/viewvc?rev=1296512&view=rev
Log: #2735 - Proxy : Add a Sampler Creator to allow plugging HTTP based samplers using potentially non textual POST Body (AMF, Silverlight...) and customizing them for others
URL: http://svn.apache.org/viewvc?rev=1296513&view=rev
Log: #2735 - Proxy : Add a Sampler Creator to allow plugging HTTP based samplers using potentially non textual POST Body (AMF, Silverlight...) and customizing them for others
@pmouawad (Bug 52674):
It would be useful to have the ability to plug a Sampler Customizer that depending on content type.
One example I need currently is the following:
Another requirement I have is to be able to customize created sampler,
A direct use I see is for example a SilverLight or Flex protocol, doing this will enable plugins to implement a factory and use current implementations of Proxy, ProxyControl and HttpRequestHdr.
This could be done by delaying sampler creation until rawPostBody and contentType are available in HttpRequestHdr, once these are available , a factory could be called with content type , this would enable plugging other Samplers than just HttpSampler.
OS: All
Duplicates:
Depends on:
Blocks:
The text was updated successfully, but these errors were encountered: