I want to read the values in txtFirstName a variable being passed in the following example url address:
http://www.library.com/elib1/elib/booknum/onenter.asp? txtFirstName=OFF SEASON ~ SIDDONS, ANNE RIVERS~ 2008~ GRAND CENTRAL PUB.~ WIDOWS FICTION
Basically I have a website that I want to pass database values back to an iPhone App. TxtFirstName holds the values being passed. I have this worked out in a Visual Basic program in Windows that when the above URL is called the values in TxtFirstname are striped away into variables, with the ~ being the delimiter to distinguish the values in the TxtFirstname variable.
I am trying the following code below but all I get is the contents of the page in html.
local url = "http://www.library.com/elib1/elib/booknum/onenter.asp?txtFirstName=OFF SEASON ~ SIDDONS, ANNE RIVERS~ 2008~ GRAND CENTRAL PUB.~ WIDOWS FICTION
local function networkListener( event )"
if ( event.isError ) then
print( “Network error!”)
else
print ( "RESPONSE: " … event.response )
end
end
network.request( url, “GET”,networkListener,txtFirstName )
How does the 3rd parameter in network. request work? [import]uid: 22152 topic_id: 15956 reply_id: 315956[/import]
[import]uid: 3826 topic_id: 15956 reply_id: 59104[/import]