wodHTTP & roundrobin/multiple-IPs - WeOnlyDo Discussion board

wodHTTP & roundrobin/multiple-IPs (General questions)

by dirk, Monday, June 24, 2013, 09:37 (4171 days ago)


Via roundrobin www.mydomain.com can resolve to 1.2.3.4 and to 1.2.3.5.
If I check via the wodhttp component I check www.mydomain.com, due to the roundrobin (or to the multiple IPs) I don't know which exact server will be used.
The webservers won't serve the page correctly using http://1.2.3.4 and http://1.2.3.5

Is is possible using the wodHTTP component to force to what server it should go in order to fetch the page?


dirk

Re: wodHTTP & roundrobin/multiple-IPs

by woddrazen, Monday, June 24, 2013, 10:22 (4170 days ago) @ dirk

Hi Dirk,


Did you try to connect to that server first using Connect Method and then send request?

You can find here example how to connect to serve using Connect Method:
http://www.weonlydo.com/HttpDLX/Help/wodHttpDLX-Connect.html


Regards,
Drazen

Re: wodHTTP & roundrobin/multiple-IPs

by dirk, Monday, June 24, 2013, 11:00 (4170 days ago) @ woddrazen

Hi Drazen,


in the example the HOSTNAME is set to a URL.
In my case the URL is the same for both system, but the hostname resolves to 2 different IPs.

Hi Dirk,


Did you try to connect to that server first using Connect Method and then send request?

You can find here example how to connect to serve using Connect Method:
http://www.weonlydo.com/HttpDLX/Help/wodHttpDLX-Connect.html


Regards,
Drazen

Re: wodHTTP & roundrobin/multiple-IPs

by woddrazen, Monday, June 24, 2013, 13:28 (4170 days ago) @ dirk

Dirk,


Is there any chance you can show us your code snippet?


Drazen

Re: wodHTTP & roundrobin/multiple-IPs

by dirk, Monday, June 24, 2013, 13:44 (4170 days ago) @ woddrazen

My question was based on a customers question. I didn't test this with my code.
The remark I made about the code was based on the example link you send me.


dirk

Dirk,


Is there any chance you can show us your code snippet?


Drazen

Re: wodHTTP & roundrobin/multiple-IPs

by woddrazen, Monday, June 24, 2013, 13:50 (4170 days ago) @ dirk

Dirk,


I would suggest you to try this if you didn't already [code]http1.Connect( your_ip )[/code


Drazen

Re: wodHTTP & roundrobin/multiple-IPs

by dirk, Monday, June 24, 2013, 13:55 (4170 days ago) @ woddrazen

So it's NOT like in the example that you linked but usign the IP (example that you linked uses the URL)

Dirk,


I would suggest you to try this if you didn't already [code]http1.Connect( your_ip )[/code


Drazen
[/quote]

Re: wodHTTP & roundrobin/multiple-IPs

by woddrazen, Monday, June 24, 2013, 14:06 (4170 days ago) @ dirk

Dirk,


Yes, you can use there also IP.


Drazen