Your choices from the INet library are extremely limited. If you pass extra
parameters you generate a URL-encoded POST. If you don't provide
parameters, you generate a simple GET.
With ASP, there are a lot of potential problems. It is important to
remember that you are not actually creating a TCP/IP connection between the
Palm VII and your server. You are generating a pager system packet on the
Palm VII which is translated into a TCP/IP transaction by a Palm clipping
server.
However, the simplest cases should work. Chances are the problem is that
your ID parameter is not properly encoded from the server's perspective. A
good way to test this is to submit the URL and encoded data on the address
line of your PC web-browser. Once you have a URL encoding that works, you
can pass the whole string as a URL GET on the VII. Once that works, you can
work on encoding the parameters and passing them separate from the URL.
I'm not sure I understand why getting HTML is a problem. I would almost
always expect a valid HTML page in response to an ASP URL. The server is
supposed to run the script and generates an HTML page as a result.
Good Luck,
-jjf
-----Original Message-----
From: Wadhwa, Harmit [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 16, 2000 12:01 PM
To: Palm Developer Forum
Subject: http post...
Hey everyone,
I am trying to use the InetLow sample code to connect to a server
and pass certain parameters. I guess I am missing something fairly
simple. When I connect, the response I get is html. I'm sure that is a
simple fix. But what I am concerned about is that when I connect to the
server-side script (.asp) it doesn't even perform the functionality
properly.
Let's just say that I am passing an id as a parameter and I want the .asp
page to print it's associated values from a database. This isn't happening.
Would anyone know what I am missing off hand.
I simply am just using my own url and the sample page submits to a form that
I pass a parameter to, I have tried both with a get and post method.
Any help would be greatly appreciated.
Thanks,
Harmit
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/