Re: HttpConnect in Buffer upload plugin

2017-12-27 Thread supraja sridhar
Yes, it looks like the API I used wasn't the right one. I got it print the
client address.
But I don't understand why the buffer upload plugin is trying to connect to
the client? After the post data is buffered shouldn't the request be
forwarded to the origin server?

Thanks,
Supraja

On Tue, Dec 26, 2017 at 11:50 PM, Leif Hedstrom  wrote:

> Yes, client IP. It sounds like maybe you are printing it in the wrong byte
> order? Make sure to use the right APIs for converting the addr to a string?
>
> Ciao,
>
> — Leif
>
> > On Dec 26, 2017, at 01:50, supraja sridhar 
> wrote:
> >
> > Hi ! I have just started using traffic server and I am experimenting
> with the buffer-upload plugin. TSHttpConnect uses the address returned by
> TSHttpTxnClientAddrGet. My question is, is TSHttpTxnClientAddrGet the IP
> address of the client? When I print the return value it looks like this:
> client: connecting to 2.0.182.120. I am running ATS as a reverse proxy to a
> local web server.
> >
> > Is it trying to connect to the client? If so, shouldn't the plugin try
> to connect to the server instead of the client?
> >
> > Having said that, the request does reach the web-server.
> >
> > --
> > Thanks,
> > S.SUPRAJA
> >
>
>


-- 
Regards,
S.SUPRAJA
MIT


tspush permission denied ATS 6.2.2

2017-12-27 Thread ezko
trying to push content to cache.  ATS 6.2.2 reverse proxy.

setup:

ip_allow.config:
src_ip=127.0.0.1  action=ip_allow method=ALL

records_config:
CONFIG proxy.config.http.push_method_enabled INT 1

./tspush -v -f test_push.txt -u http://localhost/test_push.txt

contents of test_push.txt:

PUSH http://www.company.com HTTP/1.0
Content-length: 84

HTTP/1.0 200 OK
Content-type: text/html
Content-length: 17


a


result:
HTTP/1.0 403 Access Denied
Description: You are not allowed to access the document you requested.

not sure how to define the mapping in remap.config and if there are any
other required permissions ?
thanks in advance.




--
Sent from: http://apache-traffic-server.24303.n7.nabble.com/