Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
Ask Question
Dim apiAddr As String = "/api/queues/%2f/" & localIP & "/get"
Dim requestAddr As String = "http://" & serverIP & ":" & port & apiAddr
Debug.WriteLine(requestAddr)
wb = New System.Net.WebClient
While isConnect = True
Dim postBody As String = My.Settings.body1 '' it is correct json parameters
wb.Headers.Add("Content-Type", "application/json")
wb.Credentials = New System.Net.NetworkCredential("guest", "guest")
Dim result As String = wb.UploadString(requestAddr, "POST", postBody)
If result IsNot Nothing AndAlso result.Length > 0 Then
Debug.WriteLine(Now.ToString & ":" & "RESPONSE: " & result)
End If
Occur
'405 Method not allowed' and 'request was aborted'
Error When i use HTTP type to get RabbitMQ Message.
Sometimes occurs
'405 Method not allowed'
, Sometimes occurs
'request was aborted' error.
Our username,password,port,queue name and server ip are all correct. and i use 'PUT' Method to try but also occurs ERROR-->: the underlying connection was closed, unable to read data from the transport connection.
REFERENCE :
http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v3_0_1/priv/www/api/index.html
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.