Tim,

Have you checked out the rblibrary.com articles?
I bought one this very afternoon about httpsocket uploads - I haven't read it yet though....


Check this link here for an example post script.
http://www.resexcellence.com/realbasic/articles/2004/09-25-04/

Does it work when you go http instead of https?

Do you have access to the log on the server, showing what the post actually came out like?

Can you go Get by any chance?
For gets specifically, I know this is low tech, but I still post data by building up the URL manually like:
url = "http://server.com/get.php?&user="; + user + "&val2"...
I know it's not post, but hope it helps.

Good luk,


On Mar 20, 2006, at 5:20 AM, Warachet Samtalee (AP-SDT) wrote:

I've tried to used to POST data (that's username&password)

from REALbasic to PHP (login page) and submit that value

,but it seems does not work well.What more suitable way should I use?



  // Dim socket1 as new HTTPSocket

  //dim data as new dictionary

  //data.value("action")="submit"

  /data.value("usrid")="username"

  //data.value("passwd")="password"



  // setup the socket to POST the form

  //socket1.setFormData data

  //socket1.post
"https://ip_address/apache2-default/PHP_Scripts/login.php";

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


--

Cheers,

Dr Gerard Hammond
Bioinformatic Analyst
Garvan Institute of Medical Research, Sydney, Australia.

If you're not part of the solution, you're part of the precipitate.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to