[rabbitmq-discuss] Default Virtual Host and HTTP API problem
alfonso.pantoja at gmail.com
Wed Jul 13 23:36:09 BST 2011
Thank you for the advice.
Didn't test yet the third party library you suggested but I've seen in
the source code that it is using Uri .NET object to construct the HTTP
request which is the cause of %2F becomes "/".
Anyway it is obvious that this is an error in .NET framework.
2011/6/30 Tony Garnock-Jones <tonygarnockjones+rabbitmq at gmail.com>:
> Hi Alfonso,
> On 30 June 2011 11:39, Alfonso Pantoja <alfonso.pantoja at gmail.com> wrote:
>> I've found a problem using the HTTP API. Using .NET you should use
>> sockets or a hack to make a webrequest using the character %2F
>> because .NET replaces that %2F by "/"
>> so http://server/api/%2F/queues becomes always http://server/api///queues
>> and a not found is get.
> I recommend avoiding the broken Microsoft HTTP client library, and using a
> better third-party library. A few minutes googling produced
> http://www.codescales.com/, which looks plausible.
> (It seems that MS have actually willfully crippled their client: see, for
> instance, this bug report. "We are not aware of any such real world
> scenarios currently."—good grief!)
More information about the rabbitmq-discuss