Pages: [1]   Go Down
Author Topic: How to call a simple webpage with WiShield 2.0  (Read 177 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm trying to figure out the easiest way to call a webpage using my WiShield 2.0. I've been poking around with the Web Client example code but can't seem to get it working. Note that examples to do this with the Ethernet shield are not of much use because the libraries are not compatible.

This is for a test project and all I want to do is call a site such as http://xxx.xxx.xxx.xxx/pagename.php?q=variabletext

I thought I might be able to use webclient_get() for this such as: webclient_get(server_ip, 80, texttopass); but that doesn't seem to work. When I debug I can see that "texttopass" correctly shows up as: "/pagename.php?q=texttopass"

I suspect I'm using webclient_get() incorrectly but it doesn't throw any errors during compile or debugging.

Any tips?

John
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 551
Posts: 46240
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Any tips?
One. Post your code. We have no idea which library you are using, so any help would be just guesswork, and it seems you've done enough guessing.
Logged

Pages: [1]   Go Up
Jump to: