Hi Julian,
This thread is quite old but I did actually get https working for server side only authentication (just dealing with a data problem right now with 422 errors, hopefully will have this working in next hour). I have not played with client authentication; there doesn't appear to be an exposed interface (at least have not deeply researched yet) for setting the client side cert. Maybe something was fixed between your original post date and now.
import com.twitter.parrot.config.ParrotLauncherConfig
new ParrotLauncherConfig {
doConfirm = false
requestRate = 1
duration = 20
timeUnit = "SECONDS"
victims = "
myserver.cisco.com"
log = "config/replay.log"
reuseFile = true
scheme = "https"
header = "
myserver.cisco.com"
port = 443
jobName = "simple_enroll"
localMode = true
//For debugging for now
traceLevel = com.twitter.logging.Level.ALL
verboseCmd = true
imports = """
import com.twitter.jexample.ComplexHtmlParserTest
import org.jboss.netty.handler.codec.http.HttpResponse
import com.twitter.conversions.time._
"""
loadTest = "new ComplexHtmlParserTest(service.get, this)"
}
I followed and reviewed some of your example code at
https://github.com/julianrendell/iago-examples; good stuff. I feel your pain in some ways with your reference in another thread to having to go learn scala on the fly. I haven't bit the bullet yet as switching between java, python, c++, ect.. is enough right now. I did however write an example that actually works with pure java; its not optimized right now but basically has the keys in it to do the translations for instantiating and working with the scala objects from java. I'll see if I can clean it up a little and fork your project off as a place holder for it. My team was looking to write a complex parser for http testing that would understand like your code does of forming different requests based on the feeder lines we receive. We were looking at something very generic that would work like the curl command line.
Regards,
Jonathan