Re: Communicate with server using PUT

2013-06-27 Thread Dar Scott
This is coming back to me and I think I ended up testing the PUT on a different server. Perhaps some Apache setting was getting in the way and the ISP was not able to track it down. I still wonder if my test had some flaw staring me in the face. In any case, I was able to do the test. Dar O

Re: Communicate with server using PUT

2013-06-27 Thread Mark Wieder
J. Landman Gay writes: > All that trouble over a single integer. Thanks to SCOTUS, single integers can now get married. -- Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to su

Re: Communicate with server using PUT

2013-06-27 Thread J. Landman Gay
Thanks everyone, the problem is solved. It was indeed an authorization problem and once I fixed that, PUT started working. We are using a token to identify the app, and a bad copy/paste caused it to be missing a digit. All that trouble over a single integer. Right now I'm putting the data into

Re: Communicate with server using PUT

2013-06-27 Thread Ben Rubinstein
On 27/06/2013 14:28, Mike Bonner wrote: I think a put and a post are very similar. You might manually set the headers to work as a put but us post to send the data. (think the data comes through the same way, its just the headers that differ) I don't think that's needed - LiveCode's PUT mechani

Re: Communicate with server using PUT

2013-06-27 Thread Trevor DeVore
On Thu, Jun 27, 2013 at 10:00 AM, Dar Scott wrote: > I have had trouble with PUT. > > I worked with the ISP to make sure it was enabled. I set up the right > access file permissions. I made sure to put the name and password in the > URL. And failure. > > So, either there was some overriding se

RE: Communicate with server using PUT

2013-06-27 Thread Ralph DiMola
evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Thomas McGrath III Sent: Thursday, June 27, 2013 10:07 AM To: How to use LiveCode Subject: Re: Communicate with server using PUT Ralph, I'm trying to learn about the Googl

Re: Communicate with server using PUT

2013-06-27 Thread Thomas McGrath III
sult/geometry/"&nodename&"/lat") > into geo["Lat"]["Center"] > put > revxmlnodecontents(txml,"GeocodeResponse/result/geometry/"&nodename&"/lng") > into geo["Lon"]["Center"] >

Re: Communicate with server using PUT

2013-06-27 Thread Dar Scott
I have had trouble with PUT. I worked with the ISP to make sure it was enabled. I set up the right access file permissions. I made sure to put the name and password in the URL. And failure. So, either there was some overriding setting at the ISP that blocked things or either me or liburl is

Re: Communicate with server using PUT

2013-06-27 Thread Mike Bonner
I think a put and a post are very similar. You might manually set the headers to work as a put but us post to send the data. (think the data comes through the same way, its just the headers that differ) On Thu, Jun 27, 2013 at 6:20 AM, Ben Rubinstein wrote: > On 27/06/2013 06:06, J. Landman Gay

Re: Communicate with server using PUT

2013-06-27 Thread Trevor DeVore
On Thu, Jun 27, 2013 at 1:06 AM, J. Landman Gay wrote: > > If we ever get the authentication worked out, I'm still not sure how to do > a PUT. I'll try putting the data back into the variable and send that. put empty into url "http://domain.com/page.xxx?**value1=one&value2=two

Re: Communicate with server using PUT

2013-06-27 Thread Ben Rubinstein
On 27/06/2013 06:06, J. Landman Gay wrote: If we ever get the authentication worked out, I'm still not sure how to do a PUT. I'll try putting the data back into the variable and send that. Hi Jacque, Are you able to watch your network traffic, eg using WireShark? I've often found this was th

Re: Communicate with server using PUT

2013-06-26 Thread J. Landman Gay
On 6/26/13 11:59 PM, Phil Davis wrote: On 6/26/13 7:45 PM, J. Landman Gay wrote: A browser can send http URLs with query strings, and I think that's a PUT. It's a GET. If you try this, you'll see " $REQUEST_METHOD = GET": http://pdslabs.net/rev/globals.cgi?first=1&second=2 That's all I

Re: Communicate with server using PUT

2013-06-26 Thread Phil Davis
On 6/26/13 7:45 PM, J. Landman Gay wrote: On 6/26/13 9:09 PM, Peter W A Wood wrote: Jacque On 27 Jun 2013, at 09:33, J. Landman Gay wrote: That's how I first started, using "put", but I think I had the content wrong. What goes into "theData"? In this case, the parameter values are the data.

Re: Communicate with server using PUT

2013-06-26 Thread J. Landman Gay
On 6/26/13 10:39 PM, Monte Goulding wrote: On 27/06/2013, at 12:45 PM, J. Landman Gay wrote: Error 401 is a bad format error. It's unauthorized... are you meant to send credentials... http://username:pass@ Oh gosh, I shouldn't rely on my memory. I'll ask them. It figures the server

Re: Communicate with server using PUT

2013-06-26 Thread Monte Goulding
On 27/06/2013, at 12:45 PM, J. Landman Gay wrote: > Error 401 is a bad format error. It's unauthorized... are you meant to send credentials... http://username:pass@ -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an e

Re: Communicate with server using PUT

2013-06-26 Thread J. Landman Gay
On 6/26/13 9:09 PM, Peter W A Wood wrote: Jacque On 27 Jun 2013, at 09:33, J. Landman Gay wrote: That's how I first started, using "put", but I think I had the content wrong. What goes into "theData"? In this case, the parameter values are the data. Should I just do "put empty into url http:/

Re: Communicate with server using PUT

2013-06-26 Thread Peter W A Wood
Jacque On 27 Jun 2013, at 09:33, J. Landman Gay wrote: > That's how I first started, using "put", but I think I had the content wrong. > What goes into "theData"? In this case, the parameter values are the data. > Should I just do "put empty into url http://blah blah"? I didn't think that the

Re: Communicate with server using PUT

2013-06-26 Thread J. Landman Gay
On 6/26/13 7:03 PM, Ralph DiMola wrote: J, Well I guess no attachments on the list. Here it is in-line. function GeoCode StreetAddress , CSZ Thanks. I actually have the parameters formatted, I'm just not having any luck with the PUT business. -- Jacqueline Landman Gay | jac...@

Re: Communicate with server using PUT

2013-06-26 Thread J. Landman Gay
On 6/26/13 6:52 PM, Trevor DeVore wrote: put theData into URL " http://somedomain.com/page.php?value1=value&value2=value"; The above will send data to a server using PUT. The result will return error messages. If you want data returned by the server use the urlresponse. That's how I first st

Re: Communicate with server using PUT

2013-06-26 Thread J. Landman Gay
On 6/26/13 6:43 PM, Matthias Rebbe wrote: Jacques Is page in your URL example a folder or a file? If it is a folder then I am pretty sure it needs a slash after it. It's a file, I left off the suffix because it's a custom one and I didn't want to have to explain it. :) -- Jacqueline Landma

RE: Communicate with server using PUT

2013-06-26 Thread Ralph DiMola
nter"] break Case "location_type" put revxmlnodecontents(txml,"GeocodeResponse/result/geometry/"&nodename) into geo["LocationType"] replace "RANGE_" with empty in geo["LocationType"]

RE: Communicate with server using PUT

2013-06-26 Thread Ralph DiMola
, 2013 7:23 PM To: How to use LiveCode Subject: Re: Communicate with server using PUT When I use the full URL with "get url" it returns a 404. When the server person does it from Rails, they get data back. I need to get the same data back, so I guess checking the headers won't w

Re: Communicate with server using PUT

2013-06-26 Thread Trevor DeVore
put theData into URL " http://somedomain.com/page.php?value1=value&value2=value"; The above will send data to a server using PUT. The result will return error messages. If you want data returned by the server use the urlresponse. -- Trevor DeVore On Wednesday, June 26, 2013, J. Landman Gay wro

Re: Communicate with server using PUT

2013-06-26 Thread Matthias Rebbe
Jacques Is page in your URL example a folder or a file? If it is a folder then I am pretty sure it needs a slash after it. Regards Matthias Von meinem iPhone gesendet Am 27.06.2013 um 01:22 schrieb "J. Landman Gay" : > When I use the full URL with "get url" it returns a 404. When the server

Re: Communicate with server using PUT

2013-06-26 Thread J. Landman Gay
When I use the full URL with "get url" it returns a 404. When the server person does it from Rails, they get data back. I need to get the same data back, so I guess checking the headers won't work. The server responds with stuff I need to use. So if "get URL" is the way to do it, then the "get

Re: Communicate with server using PUT

2013-06-26 Thread Monte Goulding
Should be the latter... what's the error? On 27/06/2013, at 9:07 AM, "J. Landman Gay" wrote: > That's an idea, thanks. > > I'm having trouble actually doing the PUT. I need to send a string like this: > > http://domain.com/page?thing=one&other=two&somethingelse=three > > What's the proper way

Re: Communicate with server using PUT

2013-06-26 Thread J. Landman Gay
That's an idea, thanks. I'm having trouble actually doing the PUT. I need to send a string like this: http://domain.com/page?thing=one&other=two&somethingelse=three What's the proper way to format that? Should I be using this: put "thing=one&other=two&somethingelse=three" into url "http://d

Re: Communicate with server using PUT

2013-06-26 Thread Monte Goulding
you should be able to check the libURLLastRHHeaders.. unless you are talking about mobile... actually there's no put on mobile anyway... On 27/06/2013, at 8:48 AM, "J. Landman Gay" wrote: > I need to send data to a server and they want me to use PUT instead of POST. > I also need to get a ver