Re: [E] Proposal for new TS plugin API function: TSUrlPortGet

2020-10-06 Thread Walt Karas
The current behavior that I'm seeing for TSUrlPortGet() is that for this request: printf "GET / HTTP/1.1\r\nHost: mYhOsT.teSt:61000\r\n\r\n" | nc localhost 61001 it returns 80. Should TSUrlRawPortGet() return -1 ? For this request: printf "GET http://mYhOsT.teSt:61000/

Re: [E] Re: Proposed new TS plugin API function: TSHttpHdrSchemeGet

2020-10-06 Thread Walt Karas
So, when I call the current TSUrlSchemeGet() for these two requests: printf "GET / HTTP/1.1\r\nHost: mYhOsT.teSt:61000\r\n\r\n" | nc localhost 61001 printf "GET http://mYhOsT.teSt:61000/ HTTP/1.1\r\n\r\n" | nc localhost 61001 I get "http" for both. Does that mean it's already working as desired?