Possible to send data through Internet to a server

Ksmith1192

Member
Licensed User
Longtime User
Hi all,

I have an app where I have a separate "comments" section. I want to be able to send whatever is in the comments to my server. How would I get about doing that? Any ideas, or point me in the right direction?

Thanks!
 

JonPM

Well-Known Member
Licensed User
Longtime User
Is there a specific format your server requires (i.e. SQL, etc)? Or are you open to suggestions? Are these comments meant to be seen by all users, or just you?
 
Upvote 0

Ksmith1192

Member
Licensed User
Longtime User
What we were trying to do, is take whatever was put into the Comments field, and transfer it as a long web address string. Where my server takes that web address and deciphers it as an email, and sends it from there.

So for example our server is on -www.feeddealer.com/server/app_mail.exe?-

if we send this comment below it would translate it to a web address

"How are you today"


-www.feeddealer.com/server/app_mail.exe?dealerid=1&[email protected]&content=How_are_you_today-

So my question is how do i convert the comments into this string that the server will accept as a web url? And how would I make it send.

Thank you!
 
Upvote 0

madSac

Active Member
Licensed User
Longtime User
What we were trying to do, is take whatever was put into the Comments field, and transfer it as a long web address string. Where my server takes that web address and deciphers it as an email, and sends it from there.

So for example our server is on -www.feeddealer.com/server/app_mail.exe?-

if we send this comment below it would translate it to a web address

"How are you today"


-www.feeddealer.com/server/app_mail.exe?dealerid=1&[email protected]&content=How_are_you_today-

So my question is how do i convert the comments into this string that the server will accept as a web url? And how would I make it send.

Thank you!

You should encode data like comment and email using encodeurl method of stringUtils library.

To submit information to server use httputils2 module by erel.
 
Upvote 0

wl

Well-Known Member
Licensed User
Longtime User
You should avoid passing the comments in the url (HTTP GET method) because the length of an URL is limited (depending on the webserver or any proxy etc in between the client and the server).

You'd better pass the info using the HTTP POST method.

Wim
 
Upvote 0
Top