Hi there.I am putting together a plugin based on the protocol and redirect-1 examples but I am getting a null response from myTSUrlHostGetcall. TSHttpTxnClientReqGet, TSHttpHdrUrlGet and TSUrlPathGet work fine, but the host response is null.If I call TSUrlHostSet first then I can retrieve the value, but not otherwise. Is there some setting I need to allow the host to be visible to my plugin? I have just added the plugin to my plugins.config file and am setting a hook on TS_EVENT_HTTP_READ_REQUEST_HDR thanks for any tips. Servalan
---------------------------------------- > From: Peter.Walsh@disney.com > To: users@trafficserver.apache.org > Date: Thu, 5 Apr 2012 09:57:15 -0700 > Subject: RE: using curl during an http transaction > > Hello, > I worked with Erik on this, and we did get it working eventually. It was quite difficult to get this working as there aren't any good examples, but we pieced together what we could based on the InkAPITest class and the example protocol plugin that uses TSNetConnect, which is somewhat similar. > > I'm a bit swamped right now, but when I have a minute I'll post a response to this with some helpful tips, gotchas, etc. > > -Pete > > -----Original Message----- > From: Servalan eq [mailto:servalaneq@hotmail.com] > Sent: Thursday, April 05, 2012 7:27 AM > To: users@trafficserver.apache.org > Subject: RE: using curl during an http transaction > > > > > Hi Erik, did you ever get this TSHttpConnect call working? > I too am looking for some good examples to call a seperate HTTP service while processing a request to determine how to handle it. > thanks very much, > Servalan > > > On 04/20/2011 02:16 PM, Earle, Erik wrote: > > > Is there an example usage of TSHttpConnect somewhere? I did not > see any in the examples. > > > > > > -- > > Erik > Earle 206.664.4016 tie line: > 8.664.4016 erik.earle@disney.com > > Walt > Disney Connected and Advanced Technologies > > 925 4th Ave - Suite 1600 - Seattle - 98104 > > > > From: Leif Hedstrom > [mailto:zwoop@apache.org] > > Sent: Wednesday, April 20, 2011 2:33 PM > > To: users@trafficserver.apache.org > > Cc: Earle, Erik > > Subject: Re: using curl during an http transaction > > > > On > 04/20/2011 02:16 PM, Earle, Erik wrote: > > Hi > all. I'm new to the list and trafficserver. > > > > I'm > building a plugin to do OAuth 2. I'm looking to make a call to a separate > (REST) service to do the OAuth token validation. > > > > Does anyone > have experience with using something like curl or vconnections, etc. to make a > separate http request during an http transaction? > > > > > > You want to use the appropriate APIs that we provide to perform HTTP requests, > e.g. TSNetConnect() or TSHttpConnect(). > > > > -- leif
