Discussion:
could not fetch content
rash_s13
2006-04-10 15:52:51 UTC
Permalink
hi,I have the following lines in my bills.cgi,
.
.
my $sth=$dbh->prepare("select initial,current from bill3 where
user_id='$num' ");
.
.
Location:
"http://localhost:13013/sendsms/username=tester&password=foobar&to="9845943645"&text=$b\n\n";
where $b is the output of bills.cgi which is to be sent as a replyto the
user.

My sms-service configuration is as follows,

group = sms-service
keyword = bill
get-url = "http://localhost/cgi-bin/rash/bills.cgi?num=%s"

when I send an sms, bill 2411774,where 2411774 is present in database, it
gives me a reply "could not fetch content,sorry".

How do I get the correct contents?

Regards,
Rashmi.




--
View this message in context: http://www.nabble.com/could-not-fetch-content-t1425843.html#a3844673
Sent from the Kannel - User forum at Nabble.com.
amit_1me
2006-04-16 19:09:44 UTC
Permalink
hello your missing the '?' in the url
http://localhost:13013/sendsms/username=tester&password=foobar&to="9845943645"&text=$b\n\n";
the ? is necessary because it specify the beginning of the query string

also when you call the url you do not have to use the sendsms url u have
,simply output the result as you would in an html docment using scripting

also when u call the url on receiving the sms pass on the phone number to
the page using %p in the url

this may solve ur problem
--
View this message in context: http://www.nabble.com/could-not-fetch-content-t1425843.html#a3942244
Sent from the Kannel - User forum at Nabble.com.
rash_s13
2006-04-17 14:36:38 UTC
Permalink
Hi,

Thanks for your reply.The reason I wasn't getting the right reply was that
I hadn't specified the content-type in my cgi script.That rectified my
problem.

Thanks,
Rashmi.
--
View this message in context: http://www.nabble.com/could-not-fetch-content-t1425843.html#a3950794
Sent from the Kannel - User forum at Nabble.com.

Loading...