On Sep 17, 3:08 pm, Axeface <[EMAIL PROTECTED]> wrote: > I am very fond of this topic. At the moment I am using GET commands to > transfer information to the server but I find POST to be more secure.
That's a common misconception. The only difference is that a GET request can end up in the browser address bar and therefore be visible to someone looking over your shoulder. There's no in-transit security, and in fact the form-url-encoded data looks exactly like the GET request data. > I would like the commented out code on line 113 to be replaced by > something similar but using the POST command. Can anyone who has a > more detailed explanation to the documentation of how to add in the > POST parameters explain to me how to do is. It would be much > appreciated. Here is a link to my website: http://code.google.com/apis/maps/documentation/reference.html#GDownloadUrl http://developers.sun.com/mobility/midp/ttips/HTTPPost/ [found via a Google search] I would guess at something like the following. Note that because of the additional parameters it makes for more legible code to define the callback function elsewhere. In fact you might even construct the data string elsewhere as well. The last parameter is optional if you use form-encoded data. GDownloadUrl("/CONTRACTORLATLNG",callbackFunction,"name=" + markers[currentMarker].getAttribute("name") + "&lat=" + markers[currentMarker].getAttribute("lat") + "&lng=" + markers[currentMarker].getAttribute("lng"),"application/x-www-form- urlencoded") Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
