harlequin-tech / WiFlyHQ

WiFly RN-XV Arduino Library
Other
110 stars 68 forks source link

Example: httpclient doesn't work with my virtual host #10

Closed KarlWang closed 12 years ago

KarlWang commented 12 years ago

Hi there, thanks for the WiFlyHQ, it's just so cool!

I have a question for you. My host is a virtual host, and it doesn't have a dedicated IP address. Now I want to get the response of a page, (eg: www.example.com/mysite/echo_id.php?id=123), but the httpclient example doesn't work properly. I simply changed the site from "hunt.net.nz" to "www.example.com/mysite/echo_id.php?id=123", it's always time out and looks like it can't reach the page "echo_id.php".

I guess that's because WiFly can't get the real path of the page "echo_id.php" on a virtual host. So how can I fix this?

Thank you in advance!!

KarlWang commented 12 years ago

I found what iball did in issue #2. Solved. Thanks!!

harlequin-tech commented 12 years ago

Great, glad you got it working.

Sounded like you needed to include the domain address as a line in the request (that's the usual way virtual hosts work for http).

Harlequin.