For the solution to this question, see my stackoverflow question and answer here : Android: HTTP connection to localhost web site <http://stackoverflow.com/questions/26053675/android-http-connection-to-localhost-web-site>
Rather disappointed that nobody bothered to answer here on this dedicated forum, though. On Thursday, 25 September 2014 10:36:02 UTC+2, Simon Giddings wrote: > > I have an application developed which needs to connect to a web site to > collect online content. > > I have seen that we can indeed connect to a web server on a local system > by addressing it via it's ip address. > However, I am using virtual hosts on my system, so as to use virtual > domains. > This is setup on my system in the apache httpd-vhosts.conf file like this > - > # > # Project wordpress dev site > # > <VirtualHost *:80> > DocumentRoot "C:/web/www/boutique" > ServerName boutique.project.dev > </VirtualHost> > > with my hosts file having the following entry > 127.0.0.1 boutique.project.dev # project woocommerce site > > I am using the HttpPost and HttpClient classes and I cannot see how I can > provide the real IP address whilst still transmitting the host name in the > URL request. > > So, what I need to know is how can I make queries from my application > using the virtual address " boutique.project.dev " ? > Is this possible ? > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

