[zeromq-dev] Send HTTP request and get response using ZeroMQ

Łukasz Nowak email at lnowak.com
Mon Jan 6 12:04:39 CET 2014


Hello,

Then this option can be used on connect socket, the HTTP protocol has to be
implemented elsewhere (it would be the same for server side).

So create context, then socket, set the option (ROUTER_RAW) and connect to
your HTTP server endpoint. Then you can implement HTTP protocol in your
application.

Lukasz


2014/1/6 Ravir Pandey <ravir.pandey at commusoft.co.uk>

> Ok but how can i achieve http request through this. Basically i want to
> store messages in queues using zmq server and then i want to send it to my
> http server. It looks like it binds with tcp://*:8080 first and after that
> next process done.
>
>
> On Mon, Jan 6, 2014 at 2:54 PM, Łukasz Nowak <email at lnowak.com> wrote:
>
>> Hello,
>>
>> This has stabilised in ZeroMQ 4.0. Please take a look for zmq_socket
>> manpage ( http://api.zeromq.org/4-0:zmq-socket ), section "Native
>> patterns" and option "ZMQ_STREAM".
>>
>> I am using it flawlessly on pyzmq binding. There is still depracated
>> naming ROUTER_RAW option on socket.
>>
>> Regards,
>> Lukasz
>>
>>
>> 2014/1/6 Ravir Pandey <ravir.pandey at commusoft.co.uk>
>>
>>> Is there any way to send http request and get response from server.
>>>
>>> For Ex. - i want to send request to my http server http://341.23.43.21,
>>> after processing request i need a reply from same server.
>>>
>>> How can i achieve this?
>>>
>>> Ravi
>>>
>>> _______________________________________________
>>> zeromq-dev mailing list
>>> zeromq-dev at lists.zeromq.org
>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>
>>>
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140106/ebb5b975/attachment.htm>


More information about the zeromq-dev mailing list