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

Re: Communicate with server using PUT

2013-06-27 Thread Trevor DeVore
On Thu, Jun 27, 2013 at 1:06 AM, J. Landman Gay jac...@hyperactivesw.comwrote: 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

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

Re: Communicate with server using PUT

2013-06-27 Thread Thomas McGrath III
26, 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 work. The server

RE: Communicate with server using PUT

2013-06-27 Thread Ralph DiMola
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 Google api and understand your code and wanted to know what is expected in CSZ to feed to this function? what is your typical line of code that calls

Re: Communicate with server using PUT

2013-06-27 Thread Trevor DeVore
On Thu, Jun 27, 2013 at 10:00 AM, Dar Scott d...@swcp.com 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

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

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

Re: Communicate with server using PUT

2013-06-27 Thread Mark Wieder
J. Landman Gay jacque@... 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

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

Communicate with server using PUT

2013-06-26 Thread J. Landman Gay
I need to send data to a server and they want me to use PUT instead of POST. I also need to get a verification afterward to know whether the transaction succeeded or not. The docs aren't clear on that, it just says errors are reported in the result. Before I spend too much time on this, does

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 jac...@hyperactivesw.com wrote: I need to send data to a server and they want me to use PUT instead of POST. I

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=oneother=twosomethingelse=three What's the proper way to format that? Should I be using this: put thing=oneother=twosomethingelse=three into url

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 jac...@hyperactivesw.com 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=oneother=twosomethingelse=three What's

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 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 jac...@hyperactivesw.com: When I use the full URL with get url it returns a

Re: Communicate with server using PUT

2013-06-26 Thread Trevor DeVore
put theData into URL http://somedomain.com/page.php?value1=valuevalue2=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

RE: Communicate with server using PUT

2013-06-26 Thread Ralph DiMola
Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of J. Landman Gay Sent: Wednesday, June 26, 2013 7:23 PM To: How to use LiveCode Subject: Re: Communicate with server using PUT When I use the full

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

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=valuevalue2=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

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 |

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 HTTP

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

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

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 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 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=1second=2 That's all I