AMQP through HTTP proxy using CONNECT tunnelling

2,219 views
Skip to first unread message

Tyrone Erasmus

unread,
Aug 16, 2016, 8:11:54 AM8/16/16
to rabbitmq-users
Hi,

I know that AMQP is a binary protocol but I have the need to tunnel it through an HTTP proxy that supports the HTTP CONNECT method. This simply provides a TCP connection after you have sent the CONNECT command.


However, there are no docs anywhere on how this could be used.

If anyone could point me in the right direction I would appreciate it

Kind regards
Tyrone

Tyrone Erasmus

unread,
Aug 17, 2016, 4:22:46 PM8/17/16
to rabbitmq-users
The answer to this was in the git commit message (see https://github.com/shanuwed/rabbitmq-dotnet-test-client/commit/7673771d3ab0ffb6633117aeab6f3d92252bc3ca):

Use: Just override ConnectionFactory.SocketFactory to return new TunneledTcpClient.

mqConnectionfactory.SocketFactory = family => new TunneledTcpClient(family,"proxy.my_company", 8080, mqConfig.ProxyUsername, mqConfig.ProxyPassword);
Reply all
Reply to author
Forward
0 new messages