Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 85AFA9672 for ; Wed, 4 Apr 2012 12:37:05 +0000 (UTC) Received: (qmail 73927 invoked by uid 500); 4 Apr 2012 12:37:05 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 73855 invoked by uid 500); 4 Apr 2012 12:37:04 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 73846 invoked by uid 99); 4 Apr 2012 12:37:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 12:37:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of servalaneq@hotmail.com designates 65.55.90.221 as permitted sender) Received: from [65.55.90.221] (HELO snt0-omc4-s18.snt0.hotmail.com) (65.55.90.221) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 12:36:57 +0000 Received: from SNT133-W49 ([65.55.90.201]) by snt0-omc4-s18.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 4 Apr 2012 05:36:36 -0700 Message-ID: X-Originating-IP: [213.86.197.188] From: Servalan eq To: Subject: Calling an arbitrary http entpoint for advice in a remap plugin Date: Wed, 4 Apr 2012 22:36:36 +1000 Importance: Normal Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 04 Apr 2012 12:36:36.0481 (UTC) FILETIME=[93394710:01CD125F] X-Virus-Checked: Checked by ClamAV on apache.org I am writing a remap plugin to do a hybrid reverse proxy / redirection task= .In some circumstances I want to call out to a seperate http server (not re= lated to the requests) do decide how to handle the requests. I've coded this up using libcurl=2C which works but seems very slow - creat= ing and destroying a curl_easy_init object per call.=A0Is there a way to ca= ll an HTTP GET during a plugin's process=2C just passing some request param= eters and headers using the internal ATSfunctionality?=A0 It seems TSFetchRespGet or TSFetchURL might work=2C but I can't see any way= to make a new tsapi_httptxn with my call in it. thanks very much=2C =