WiFly sending URL arguments through serial terminal
I am working my way through understanding how to retrieve a web page with my WiFly, but am having some difficulty in retrieving the page as expected. I haven't connected my prop yet and am just using the serial terminal. I am trying to connect to:
http://http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php
Here is what I've tried and my result.
I'm pretty sure the problem is with the
Anyone have any ideas?
Benj
http://http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php
Here is what I've tried and my result.
CMD
<4.00> set ip proto 18
AOK
<4.00> set ip address 0
AOK
<4.00> set com remote GET$/weatherstation/updateweatherstation.php \n\n
AOK
<4.00> open weatherstation.wunderground.com 80
Connect to 38.102.137.157:80
<4.00> *OPEN*HTTP/1.0 408 Request Time-out
Cache-Control: no-cache
Connection: close
Content-Type: text/html
<html><body><h1>408 Request Time-out</h1>
Your browser didn't send a complete req
uest in time.
</body></html>
*CLOS*
I'm pretty sure the problem is with the
set com remote GET$/weatherstation/updateweatherstation.php \n\nline. I've tried \r\n at the end, nothing at the end, and I keep getting the same results.
Anyone have any ideas?
Benj

Comments
In /test/test.php, I wrote the following (I used the /test sub-directory to make sure I could connect to something that wasn't at the top level):
<?php echo $_SERVER['QUERY_STRING']; ?>I then sent the following commands to the WiFly, through the serial terminal (in command mode):
And here was the response:
The only problem was that after typing "open", it responded with "*OPEN*" and then just sat there. I had to hit Enter again, and then I got my response. I'm not sure if that's a problem with my WiFly setup, the commands I'm sending it, or it won't really matter when I finally connect it to a prop for use, because I can always just send an extra <CR> after "open".
Benj