Re: [OT] Server doesn't send response code
Hi Jacque, Where exactly is the CGI sending the return message? The URL should start with ssl://www.sandbox.paypal.com/... I do this with PHP and that has worked fine for years. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 We will have room for new projects after 1 June. Contact me now and be first in line. On 29 apr 2012, at 05:34, J. Landman Gay wrote: I'm not sure who to ask about this. If someone knows where the problem is, I'll ask in an appropriate forum somewhere. I've implemented PayPal's Instant Payment Notification system using an old-style CGI on my (non-rev) server. It works fine. Paypal sends a notification, my cgi responds, Paypal sends validated, and I process the order. The data always comes in and I always get the validation response. That should be the end of it. But PayPal's sandbox test tool consistently shows an error and replies IPN delivery failed. Unable to connect to the specified URL. Please verify the URL and try again. Obviously it did find my server and URL, because my script received the data and has responded back to Paypal, which in turn has responded with a validation. So I set up a test button on a fake web page and used their sandbox accounts to buy from myself. Paypal sends its message, my cgi gets the data, sends it back, it's validated, and then Paypal starts resending the notification every 2 minutes forever until I turn off the system. The IPN docs say Paypal will resend notifications until it gets a response. When I look at the IPN history, there is no server response code for any of the messages (it should be 200.) The response code field is just empty. So I think what's happening is my server isn't acknowledging receipt of the messages, which causes Paypal to think it can't reach me, and it keeps resending. Is the problem a header I should be using? A server problem? Some kind of block somewhere? ISP setup? Anyone know where I should start looking? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Checking for an internet connectio
Thanks Dar. You're right, Phil's solution answers a better question than the one I asked since it kills two birds with one stone - is there an internet connection and is the server responding. Pete lcSQL Software http://www.lcsql.com On Sat, Apr 28, 2012 at 3:40 PM, Dar Scott d...@swcp.com wrote: Hi, Peter, I like Phil's solution, but it does answer a slightly different question from you said you want to ask. I think it is a better question. It answers not only if there is an Internet connection but also whether your update server is online and reachable. That might be more of the question you wanted your script to ask. It does not say whether there are ftp/http services available on your download server. You might want to check with a quick ping by hand to make sure icmp services are available on you server (which they are likely to be). Dar On Apr 28, 2012, at 2:24 PM, Peter Haworth wrote: Great, thanks a lot Phil, I'll give that a whirl. Pete lcSQL Software http://www.lcsql.com On Sat, Apr 28, 2012 at 12:30 PM, Phil Davis rev...@pdslabs.net wrote: Hi Peter, I use ping to see if a given server is available. There are fewer bad things that can happen using this approach than trying to get a URL. The following code came from a recent project (slightly modified to protect the innocent) - watch line wraps: on mouseUp answer Connection status = app_connectionStatus(google.**com http://google.com ) end mouseUp function app_connectionStatus pTargetDomain -- attempt to ping the ctrainweb.com server switch (the platform) case MacOS put shell(ping -c 1 -t 5 pTargetDomain) into tShellOutput put the result into tResult break case Win32 -- PD 20100411 set the hideConsoleWindows to true put shell(ping -n 1 -w 5 pTargetDomain) into tShellOutput put the result into tResult break default -- all other OSes answer This app cannot run on the the platform platform. put param(0) colon the platform platform not supported into tResult break end switch -- check for connection failure if tResult empty then return false -- failed else -- connected, but how well? set the itemDel to comma if the platform = Win32 then get tShellOutput filter it with *(0% loss)* else -- Mac repeat for each item tFilter in * 0% packet loss*,* 0.0% packet loss* -- for different OS versons get tShellOutput filter it with tFilter if it empty then exit repeat end repeat end if return (it empty) end if end app_connectionStatus HTH Phil Davis On 4/28/12 12:12 PM, Peter Haworth wrote: Just put together a procedure for checking for software updates from my SQLiteAdmin program. All works great but I'm wondering the best way to check if there is an internet connection. I tried this out by disconnecting my computer from my wireless router and I got aninvalid host address message from libURLErrorData as soon as I called libURLDownloadToFile. I can easily check for that of course but it sounds like that message could come back in other circumstances so wondering if there's some other way to check for an internet connection before attempting a download. Pete lcSQL Softwarehttp://www.lcsql.com __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecode http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecode http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Checking for an internet connectio
Yes, Linux would be a useful addition. I googled linux ping and found the man page which says the format would be: ping -c 1 -w 5 pTargetDomain ...yet a third variation! Pete lcSQL Software http://www.lcsql.com On Sat, Apr 28, 2012 at 5:59 PM, Phil Davis rev...@pdslabs.net wrote: Sorry to disappoint, Mark. I'm certainly not anti-Linux; heck, Linus Torvalds and I have the same barber! But I don't have a Linux machine and don't really know enough about the different flavors to know what 'ping' format(s) to use. BUT - feel free to offer a 'case' statement that handles Linux! Phil On 4/28/12 1:33 PM, Mark Wieder wrote: Phil- Saturday, April 28, 2012, 12:30:48 PM, you wrote: default -- all other OSes answer This app cannot run on the the platform platform. Wot, no linux? :-( -- Phil Davis __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Checking for an internet connectio
Hi Phil, Double checking on the code below in your script. The man page for ping in OS X and Linux say that ping has an exit code of zero if no errors are encountered. Should the test on tResult be for zero or have you found that empty works too? Thanks, Pete lcSQL Software http://www.lcsql.com On Sat, Apr 28, 2012 at 12:30 PM, Phil Davis rev...@pdslabs.net wrote: -- check for connection failure if tResult empty then return false -- failed else -- connected, but how well? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Installing new software
Got everything working nicely with my handler to check for a more recent version of my program. The final step after downloading is to copy the new version of the program to wherever it needs to go on the user's computer but I can't do that because the program is running (this is on OS X but I assume it would be the same on other OS's). I'm guessing the way to do this is instruct the user to quit the program ,have a handler that fires when the program closes that knows a new version is ready to install and launches an Applescript (on OS X) to do the copy and start the program again. Am I on the right track? Pete lcSQL Software http://www.lcsql.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Checking for an internet connectio
Pete, It's a good idea to always check the error code returned from a shell command. The actual text may various from one OS update to another, so depending of the text returned can be a quick way to introduce an odd bug that works on one platform, but not on another. The man page will describe the returned values. If they are the text values (like ENOSPC, or EINVAL), you can look those up in the errno.h file (usually in /usr/include/sys/errno.h). Since ping returns data on both a failure and a success, checking for an empty tResult would always result in a failure as written. Tim On Apr 29, 2012, at 10:49 AM, Peter Haworth wrote: Hi Phil, Double checking on the code below in your script. The man page for ping in OS X and Linux say that ping has an exit code of zero if no errors are encountered. Should the test on tResult be for zero or have you found that empty works too? Thanks, Pete lcSQL Software http://www.lcsql.com On Sat, Apr 28, 2012 at 12:30 PM, Phil Davis rev...@pdslabs.net wrote: -- check for connection failure if tResult empty then return false -- failed else -- connected, but how well? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Checking for an internet connectio
Urgh - autocorrect sux! The actual text may vary from one OS update to another Tim On Apr 29, 2012, at 11:02 AM, Tim Jones wrote: Pete, It's a good idea to always check the error code returned from a shell command. The actual text may various from one OS update to another, so depending of the text returned can be a quick way to introduce an odd bug that works on one platform, but not on another. The man page will describe the returned values. If they are the text values (like ENOSPC, or EINVAL), you can look those up in the errno.h file (usually in /usr/include/sys/errno.h). Since ping returns data on both a failure and a success, checking for an empty tResult would always result in a failure as written. Tim On Apr 29, 2012, at 10:49 AM, Peter Haworth wrote: Hi Phil, Double checking on the code below in your script. The man page for ping in OS X and Linux say that ping has an exit code of zero if no errors are encountered. Should the test on tResult be for zero or have you found that empty works too? Thanks, Pete lcSQL Software http://www.lcsql.com On Sat, Apr 28, 2012 at 12:30 PM, Phil Davis rev...@pdslabs.net wrote: -- check for connection failure if tResult empty then return false -- failed else -- connected, but how well? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Installing new software
H ... I could be wrong (Haven't done it myself), but I thought the usual way to do this was to have a splash screen approach - the splash screen stack starts up and quickly displays a splash screen - then it checks for a new version. and if there is one the splash stack downloads the new real stack - then the splash stack replaces the old real stack with the new real stack - then the splash stack transfers control to the real: stack (with many variations about when / where / what you ask the user ) but the essence is that the downloading / replacing is done by the splash stack, not by the real stack, so there is never any need to replace the stack file which is running. -- Alex. On 29/04/2012 18:57, Peter Haworth wrote: Got everything working nicely with my handler to check for a more recent version of my program. The final step after downloading is to copy the new version of the program to wherever it needs to go on the user's computer but I can't do that because the program is running (this is on OS X but I assume it would be the same on other OS's). I'm guessing the way to do this is instruct the user to quit the program ,have a handler that fires when the program closes that knows a new version is ready to install and launches an Applescript (on OS X) to do the copy and start the program again. Am I on the right track? Pete lcSQL Softwarehttp://www.lcsql.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [OT] Server doesn't send response code
On 4/29/12 6:20 AM, Mark Schonewille wrote: Hi Jacque, Where exactly is the CGI sending the return message? The URL should start with ssl://www.sandbox.paypal.com/... I do this with PHP and that has worked fine for years. According to the most recent docs, it should be sent to https://www.sandbox.paypal.com/cgi-bin/webscr That must work, because I get responses. I think I've traced the problem to a liburl timeout. Do you use a liburl stack? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [OT] Server doesn't send response code
On 4/29/12 2:32 PM, J. Landman Gay wrote: On 4/29/12 6:20 AM, Mark Schonewille wrote: Hi Jacque, Where exactly is the CGI sending the return message? The URL should start with ssl://www.sandbox.paypal.com/... I do this with PHP and that has worked fine for years. According to the most recent docs, it should be sent to https://www.sandbox.paypal.com/cgi-bin/webscr That must work, because I get responses. I think I've traced the problem to a liburl timeout. Do you use a liburl stack? Never mind, I see you're using PHP. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Installing new software
Hi Alex, Thanks for the suggestion. That would work but I'm just not a big fan of the splash stack approach in general unless there's a genuine (at least in my opinion!) reason for having one, like an extended amount of time to initialise the program. In this case, I'd rather delay the user every time they run the program with a splash stack if the only reason for it is to deal with a situation that happens infrequently. But that's just me :-) Pete lcSQL Software http://www.lcsql.com On Sun, Apr 29, 2012 at 12:07 PM, Alex Tweedly a...@tweedly.net wrote: H ... I could be wrong (Haven't done it myself), but I thought the usual way to do this was to have a splash screen approach - the splash screen stack starts up and quickly displays a splash screen - then it checks for a new version. and if there is one the splash stack downloads the new real stack - then the splash stack replaces the old real stack with the new real stack - then the splash stack transfers control to the real: stack (with many variations about when / where / what you ask the user ) but the essence is that the downloading / replacing is done by the splash stack, not by the real stack, so there is never any need to replace the stack file which is running. -- Alex. On 29/04/2012 18:57, Peter Haworth wrote: Got everything working nicely with my handler to check for a more recent version of my program. The final step after downloading is to copy the new version of the program to wherever it needs to go on the user's computer but I can't do that because the program is running (this is on OS X but I assume it would be the same on other OS's). I'm guessing the way to do this is instruct the user to quit the program ,have a handler that fires when the program closes that knows a new version is ready to install and launches an Applescript (on OS X) to do the copy and start the program again. Am I on the right track? Pete lcSQL Softwarehttp://www.lcsql.com __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Installing new software
On 4/29/12 2:49 PM, Peter Haworth wrote: Hi Alex, Thanks for the suggestion. That would work but I'm just not a big fan of the splash stack approach in general unless there's a genuine (at least in my opinion!) reason for having one, like an extended amount of time to initialise the program. In this case, I'd rather delay the user every time they run the program with a splash stack if the only reason for it is to deal with a situation that happens infrequently. It doesn't have to actually display or wait. It can be set invisible on preopenstack and go immediately to the main stack. Then when you do an update, you could show it so the user has something to look at, and add a progress bar too if you want. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Installing new software
On Apr 29, 2012, at 3:49 PM, Peter Haworth wrote: On Sun, Apr 29, 2012 at 12:07 PM, Alex Tweedly a...@tweedly.net wrote: H ... I could be wrong (Haven't done it myself), but I thought the usual way to do this was to have a splash screen approach - the splash screen stack starts up and quickly displays a splash screen - then it checks for a new version. and if there is one the splash stack downloads the new real stack - then the splash stack replaces the old real stack with the new real stack - then the splash stack transfers control to the real: stack (with many variations about when / where / what you ask the user ) but the essence is that the downloading / replacing is done by the splash stack, not by the real stack, so there is never any need to replace the stack file which is running. Hi Alex, Thanks for the suggestion. That would work but I'm just not a big fan of the splash stack approach in general unless there's a genuine (at least in my opinion!) reason for having one, like an extended amount of time to initialise the program. In this case, I'd rather delay the user every time they run the program with a splash stack if the only reason for it is to deal with a situation that happens infrequently. But that's just me :-) The delay in using a splash stack should be minimal, unless you are doing something really time-intensive, and the user will expect a little delay, since almost every app uses the startup to initialize various things. I think building this into your startup routine is the way to go. If no update is needed, the user won't notice a thing, and if one is available you can offer the choice of updating now or postponing it. All that is pretty much industry standard. Unless I'm misunderstanding your objection. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Installing new software
Appreciate the input folks. I guess as much as anything else, I'm reluctant to start messing with my stack structure at this late stage of the game for a released product. I can pretty much guarantee there will be unforseen consequences! On thinking about this more, I'm not sure I should really overwrite the existing version of the program with the new one. I kinda like the way RunRev does things in that their program file names include the version number. That means I can download a new version and run it to see if I like the new version without destroying the old version. In fact, I keep all the old versions of LC around. On a related issue, I do have a progress scrollbar during the download. It works fine but how do I change the color of the progress bar? I've tried setting the various options on the Inspector Colors tab but they don't seem to have any effect. Pete lcSQL Software http://www.lcsql.com On Sun, Apr 29, 2012 at 2:02 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 4/29/12 2:49 PM, Peter Haworth wrote: Hi Alex, Thanks for the suggestion. That would work but I'm just not a big fan of the splash stack approach in general unless there's a genuine (at least in my opinion!) reason for having one, like an extended amount of time to initialise the program. In this case, I'd rather delay the user every time they run the program with a splash stack if the only reason for it is to deal with a situation that happens infrequently. It doesn't have to actually display or wait. It can be set invisible on preopenstack and go immediately to the main stack. Then when you do an update, you could show it so the user has something to look at, and add a progress bar too if you want. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Server doesn't send response code
I could still use some advice. I know at least a couple people have liburl working with old-style cgis. I'm running rev 3.5 and liburl 1.1.6. This script receives and logs all paypal data but hangs, causing the sandbox to think it couldn't find the server: #!rev -ui on startup if $REQUEST_METHOD = POST then start using stack liburl read from stdin until empty put it into tOrderData LOG the time Received: tOrderData put cmd=_notify-validate before tOrderData -- required response put https://www.sandbox.paypal.com/cgi-bin/webscr; into tPPAddr post tOrderData to tPPAddr if the result then LOG Post result: the result put it into tResponse -- VERIFIED or INVALID LOG Response: it stop using stack liburl end if end startup on LOG pData put paypalLog.txt into tFile open file tFile for append write pData cr cr to file tFile close file tFile end LOG Five minutes after this is run, an error occurs but no specifics are listed in the server log, only that there was no 500 html file (which is how I know something went wrong.) I'm assuming it's a timeout. Very old list messages suggest a socket may be left open. I tried both of these: set the httpHeaders to Connection: close -- before the post command and: repeat for each line s in the openSockets -- at the end of the script try close socket s catch tErr LOG tErr end try end repeat Both of these cause an unspecified 500 server error. Nothing is logged. I also tried changing the https: to plain http:, but I get a 302 redirect and the script stops. I know liburl is in use because it's logging some things, like the 302 error, and I also logged the result after putting the stack in use; it was always empty. I don't see a way to get liburl to log to a file, so I don't know where it's going wrong. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Server doesn't send response code
Hi Jaque What engine are you using? https was introduced in 2.5 and I believe it requires revsecurity.so Might be simpler to switch to php or LC server. Cheers -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Server doesn't send response code
Hi Jacque, Is it possible that you need to urlDecode or unescape the data from stdIn before posting them back to PayPal? Could it be that the data parts in tOrderData need to be urlEncoded? Could there be a problem with the character encoding? I always make sure that I send and receive UTF8. Have you tried libUrlSetSSLVerification false? My PHP script contains a Content-Length header, which is set to the total length of tOrderData. I'm also using a header Content-Type: application/x-www-form-urlencoded. I don't see these headers in your script. The libUrlPostFormdata command uses the second header too and that makes me think that it may not be sent automatically with the post command. I use a socket timeout interval of 30 seconds, yours seems to be 10 seconds (the default). -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 We will have room for new projects after 1 June. Contact me now and be first in line. On 30 apr 2012, at 01:07, J. Landman Gay wrote: I could still use some advice. I know at least a couple people have liburl working with old-style cgis. I'm running rev 3.5 and liburl 1.1.6. This script receives and logs all paypal data but hangs, causing the sandbox to think it couldn't find the server: #!rev -ui on startup if $REQUEST_METHOD = POST then start using stack liburl read from stdin until empty put it into tOrderData LOG the time Received: tOrderData put cmd=_notify-validate before tOrderData -- required response put https://www.sandbox.paypal.com/cgi-bin/webscr; into tPPAddr post tOrderData to tPPAddr if the result then LOG Post result: the result put it into tResponse -- VERIFIED or INVALID LOG Response: it stop using stack liburl end if end startup on LOG pData put paypalLog.txt into tFile open file tFile for append write pData cr cr to file tFile close file tFile end LOG Five minutes after this is run, an error occurs but no specifics are listed in the server log, only that there was no 500 html file (which is how I know something went wrong.) I'm assuming it's a timeout. Very old list messages suggest a socket may be left open. I tried both of these: set the httpHeaders to Connection: close -- before the post command and: repeat for each line s in the openSockets -- at the end of the script try close socket s catch tErr LOG tErr end try end repeat Both of these cause an unspecified 500 server error. Nothing is logged. I also tried changing the https: to plain http:, but I get a 302 redirect and the script stops. I know liburl is in use because it's logging some things, like the 302 error, and I also logged the result after putting the stack in use; it was always empty. I don't see a way to get liburl to log to a file, so I don't know where it's going wrong. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Server doesn't send response code
On 4/29/12 6:28 PM, Monte Goulding wrote: Hi Jaque What engine are you using? https was introduced in 2.5 and I believe it requires revsecurity.so Might be simpler to switch to php or LC server. Thanks for responding Monte. I'm using engine 3.5. I'm not sure about the library, is that something I need to copy over to the server? Do you know where it should go? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Server doesn't send response code
On 4/29/12 6:34 PM, Mark Schonewille wrote: Hi Jacque, Is it possible that you need to urlDecode or unescape the data from stdIn before posting them back to PayPal? Could it be that the data parts in tOrderData need to be urlEncoded? Could there be a problem with the character encoding? I always make sure that I send and receive UTF8. There's no problem sending posts or receiving the data, that part is working. If it weren't for the hang at the end, I'd have everything I need. The data is already urlEncoded, I just send it back intact. Have you tried libUrlSetSSLVerification false? Yes, no difference. I think that command is just for receiving secure data. The libUrlPostFormdata command uses the second header too and that makes me think that it may not be sent automatically with the post command. I'm not really posting form data back, just returning a url-encoded string. But again, paypal has no problem with what I'm sending; it gets my posts and answers me fine, and I have all the data I need to process the transaction. The post command appears to be working. There's just that hang at the end where paypal is waiting for some kind of ack and isn't getting one. I was reading that some ISPs disallow sending to https from a cgi; does anyone know about that? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Server doesn't send response code
On 30/04/2012, at 11:00 AM, J. Landman Gay wrote: On 4/29/12 6:28 PM, Monte Goulding wrote: Hi Jaque What engine are you using? https was introduced in 2.5 and I believe it requires revsecurity.so Might be simpler to switch to php or LC server. Thanks for responding Monte. I'm using engine 3.5. I'm not sure about the library, is that something I need to copy over to the server? Do you know where it should go? I'm assuming your server is Linux. Put it next to the engine. It should be in inside the app bundle somewhere. If all else fails, use Rev 3.5 to build a stack for Linux with SSL and see where the Standalone Builder puts it ;-) -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
The revMenuBar
Is there any reason for the IDE revMenubar to be as wide as it is? If you have ever taken a little wander with the Property inspector you will see that the max width and max height can be 65535! What could be the possible reason for the attributes to be set that large? Well, anyway back to the questions at hand: 1) The reason for all the extra real estate. 2) what is the preferred way of locking it back to a smaller width? In other words, I could make use of that extra space that is now being taken up, for no apparent reason, by a very large blank space on the menubar. Cal ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Characters that can be used in an array key
Are there any limits on what characters can be used in an array key? For example, do tab characters cause problems? Many thanks. David Epstein ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Server doesn't send response code
On 4/29/12 8:23 PM, Monte Goulding wrote: On 30/04/2012, at 11:00 AM, J. Landman Gay wrote: On 4/29/12 6:28 PM, Monte Goulding wrote: Hi Jaque What engine are you using? https was introduced in 2.5 and I believe it requires revsecurity.so Might be simpler to switch to php or LC server. Thanks for responding Monte. I'm using engine 3.5. I'm not sure about the library, is that something I need to copy over to the server? Do you know where it should go? I'm assuming your server is Linux. Put it next to the engine. It should be in inside the app bundle somewhere. If all else fails, use Rev 3.5 to build a stack for Linux with SSL and see where the Standalone Builder puts it ;-) Linux, yes. I couldn't find revsecurity.so anywhere, so I built a test app as you suggested with SSL included. It must become a part of the app, because there are no external files in it. All I get is the app. Does anyone out there happen to have a copy of revsecurity.so? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Server doesn't send response code
hmm... it may have been called something else before. I vaguely recall the windows dll changing it's name. It's certainly called revsecurity.so in the current bundle. Is it possible it was supported later on Linux than on other platforms? Cheers Monte On 30/04/2012, at 11:48 AM, J. Landman Gay wrote: On 4/29/12 8:23 PM, Monte Goulding wrote: On 30/04/2012, at 11:00 AM, J. Landman Gay wrote: On 4/29/12 6:28 PM, Monte Goulding wrote: Hi Jaque What engine are you using? https was introduced in 2.5 and I believe it requires revsecurity.so Might be simpler to switch to php or LC server. Thanks for responding Monte. I'm using engine 3.5. I'm not sure about the library, is that something I need to copy over to the server? Do you know where it should go? I'm assuming your server is Linux. Put it next to the engine. It should be in inside the app bundle somewhere. If all else fails, use Rev 3.5 to build a stack for Linux with SSL and see where the Standalone Builder puts it ;-) Linux, yes. I couldn't find revsecurity.so anywhere, so I built a test app as you suggested with SSL included. It must become a part of the app, because there are no external files in it. All I get is the app. Does anyone out there happen to have a copy of revsecurity.so? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Server doesn't send response code
On 4/29/12 8:23 PM, Monte Goulding wrote: I'm assuming your server is Linux. Put it next to the engine. It should be in inside the app bundle somewhere. If all else fails, use Rev 3.5 to build a stack for Linux with SSL and see where the Standalone Builder puts it ;-) Ah -- found a copy in an old app I'd built last year. It does live next to the engine. I copied it to the server next to the engine there, set permissions to 755. Didn't help. :( I had hopes. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Server doesn't send response code
On 4/29/12 8:55 PM, Monte Goulding wrote: hmm... it may have been called something else before. I vaguely recall the windows dll changing it's name. It's certainly called revsecurity.so in the current bundle. Is it possible it was supported later on Linux than on other platforms? I don't know. I do see it in the current bundle. In 3.5 there is an option to use SSL in the standalone builder but there's no separate file in the built app or in the Rev bundle. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Characters that can be used in an array key
Hi David, I doubt tabs make trouble but don't really know. When I have a tab-delimited line I'm using as a key, I usually base64Encode it first. I would not use nulls in a key, but again I don't really know if it would cause problems. Best - Phil Davis On 4/29/12 6:36 PM, David Epstein wrote: Are there any limits on what characters can be used in an array key? For example, do tab characters cause problems? Many thanks. David Epstein ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Real Estate
Ok, I know I'm missing something simple, but I can't see what I'm doing wrong. I have a stack that's 1000 by 1000 pixels, and I'm testing it in the iPad Simulator 5.1. In the Standalone Application Settings, I am building for iOS 5.0 or Later, Armv7, and I have set it for Landscape Left. The problem is the simulator cuts off my stack to something less than 1000 pixels in both dimensions. I know that the Retina display has a resolution of 2048 by 1536, plenty of real estate to show my stack, but it doesn't. What the heck is going on? BTW, I'm using LiveCode v 5.5. on a Mac. TIA, Roger ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Real Estate
Hi Ray, I just experienced something similar... check out... iphoneUseDeviceResolution usePixels, [ nativeControlsUsePixels ] ... in the iOS Release notes. - Charles On 2012-04-29, at 9:35 PM, Roger Guay wrote: Ok, I know I'm missing something simple, but I can't see what I'm doing wrong. I have a stack that's 1000 by 1000 pixels, and I'm testing it in the iPad Simulator 5.1. In the Standalone Application Settings, I am building for iOS 5.0 or Later, Armv7, and I have set it for Landscape Left. The problem is the simulator cuts off my stack to something less than 1000 pixels in both dimensions. I know that the Retina display has a resolution of 2048 by 1536, plenty of real estate to show my stack, but it doesn't. What the heck is going on? BTW, I'm using LiveCode v 5.5. on a Mac. TIA, Roger ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald http://buchwald.ca Vancouver / Mexico City / NYC Member of the 02 Global Network for Sustainable Design • Connect on LinkedIn • Follow me on Twitter Please consider the environment before printing this email. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Characters that can be used in an array key
On Apr 29, 2012, at 7:36 PM, David Epstein wrote: Are there any limits on what characters can be used in an array key? For example, do tab characters cause problems? NUL characters do funny things. Avoid those. A NUL is called null in LiveCode and is numToChar(0). The result of arithmetic have numberFormat applied to them to create strings for keys, so you might need to be careful there when using numbers, the same number could end up being two different keys. I have not noticed any problem with tabs. I am curious as to what else you learn. Dar Scott ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: The revMenuBar
On 4/29/12 8:31 PM, Cal Horner wrote: Is there any reason for the IDE revMenubar to be as wide as it is? What OS? If you have ever taken a little wander with the Property inspector you will see that the max width and max height can be 65535! What could be the possible reason for the attributes to be set that large? Those are the default values for all new stacks. They don't represent the current size, they are the maximum upper limit. Stacks almost never use those figures. Well, anyway back to the questions at hand: 1) The reason for all the extra real estate. 2) what is the preferred way of locking it back to a smaller width? In other words, I could make use of that extra space that is now being taken up, for no apparent reason, by a very large blank space on the menubar. On a Mac, the menubar is the width of the monitor and is always the same as any other app, and the toolbar under it just fits the icons. You must mean Windows or Linux. You could try setting the maxwidth in the stack inspector to whatever you want and see if that works. The size might be scripted though. I never noticed it being too wide. How wide is it on your monitor? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode