Re: Rev POST command and Squid proxy servers?
Jim, Thanks for your suggestion. However, I am still using 4.0.0. Regards, Bruce On Sep 1, 2010, at 8:51 PM, Jim Ault wrote: Which version of Rev are you using? I found that using POST on 4.5.3 IDE sends extra chars after the last variable, including a cr. = Login Invalid Roll back to 4.5.0 and it works again I discovered this by using the PHP function var_dump($_POST) to see all the received variables On Sep 1, 2010, at 5:21 PM, Bruce Pokras wrote: Hello all, Any known issues when using a Rev app behind a squid proxy server? My Patent Grabber application uses a POST command which a user informed me is not working. He is setting the httpProxy property to his corporate proxy server address, which he generically describes as proxy.server.de:8080. I am also a bit leery of his use of port 8080 rather than the standard HTTP port of just plain 80. But that is what he insists on using. Any comments or suggestions would be welcome. Thanks. Regards, Bruce Pokras Blazing Dawn Software www.blazingdawn.com___ use-revolution mailing list Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Rev POST command and Squid proxy servers?
Hello all, Any known issues when using a Rev app behind a squid proxy server? My Patent Grabber application uses a POST command which a user informed me is not working. He is setting the httpProxy property to his corporate proxy server address, which he generically describes as proxy.server.de:8080. I am also a bit leery of his use of port 8080 rather than the standard HTTP port of just plain 80. But that is what he insists on using. Any comments or suggestions would be welcome. Thanks. Regards, Bruce Pokras Blazing Dawn Software www.blazingdawn.com___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rev POST command and Squid proxy servers?
Which version of Rev are you using? I found that using POST on 4.5.3 IDE sends extra chars after the last variable, including a cr. = Login Invalid Roll back to 4.5.0 and it works again I discovered this by using the PHP function var_dump($_POST) to see all the received variables On Sep 1, 2010, at 5:21 PM, Bruce Pokras wrote: Hello all, Any known issues when using a Rev app behind a squid proxy server? My Patent Grabber application uses a POST command which a user informed me is not working. He is setting the httpProxy property to his corporate proxy server address, which he generically describes as proxy.server.de:8080. I am also a bit leery of his use of port 8080 rather than the standard HTTP port of just plain 80. But that is what he insists on using. Any comments or suggestions would be welcome. Thanks. Regards, Bruce Pokras Blazing Dawn Software www.blazingdawn.com___ use-revolution mailing list Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
post command
Hello, I have a big problem put fld myFld into Myvar post Myvar to http://www.mondomaine.be/dossierscripts/test.php; the php script doesn't takeUp the variable MyVar If I send a text from a form in a web page onto the test.php script, the text is taken by the php script what is wrong ? Thanks. Greetings. Yves COPPE yvesco...@skynet.be ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: post command
Yves, What is the contents of your field? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com Submit your software products to http://www.quickestpublisher.com and get found! On 9 aug 2009, at 22:45, Yves COPPE wrote: Hello, I have a big problem put fld myFld into Myvar post Myvar to http://www.mondomaine.be/dossierscripts/test.php; the php script doesn't takeUp the variable MyVar If I send a text from a form in a web page onto the test.php script, the text is taken by the php script what is wrong ? Thanks. Greetings. Yves COPPE yvesco...@skynet.be ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: post command
Le 09-août-09 à 22:49, Mark Schonewille a écrit : Yves, What is the contents of your field? re, text fld text tab text tab text text tab text tab text text tab text tab text about 10 lines Greetings. Yves COPPE yvesco...@skynet.be ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: post command
Yves, First of all, you need to define a variable. Without variables, php isn't even aware that you tried to send something. Second, you need to urlEncode your data. For example: put myVar= urlEncode(fld myFld) into myString post myString to url http://www.mondomaine.be/dossierscripts/test.php; If you have multiples variables, myString should be of the following format: myVar1= myData1 myVar2= myData2 where myDataX is urlEncoded. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com Submit your software products to http://www.quickestpublisher.com and get found! On 9 aug 2009, at 22:56, Yves COPPE wrote: re, text fld text tab text tab text text tab text tab text text tab text tab text about 10 lines Greetings. Yves COPPE yvesco...@skynet.be ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: post command
Le 09-août-09 à 23:12, Mark Schonewille a écrit : Yves, First of all, you need to define a variable. Without variables, php isn't even aware that you tried to send something. Second, you need to urlEncode your data. For example: put myVar= urlEncode(fld myFld) into myString post myString to url http://www.mondomaine.be/dossierscripts/ test.php If you have multiples variables, myString should be of the following format: myVar1= myData1 myVar2= myData2 where myDataX is urlEncoded. re Mark, yesss ! it works !! thank you very much Bonjour from Belgium ! Greetings. Yves COPPE yvesco...@skynet.be ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: post command
Please remember that a 'variable' in Rev is not the same as a 'variable' in a POST command sent to a PHP script. The PHP script parses the *single string* that is passed into the following: pairs of names and values... the name of the variable PHP will use, the string value of the variable Send this from Rev flower=roseplant=treeshrub=Arbor%20Vitae ( the %20 represents a valid space character to PHP) -- put flower=roseplant=treeshrub=Arbor%20Vitae into stringToSend post to http://thisdomain.com/landscaping/inventory.php; PHP *parses* this incoming string to (case sensitive) $flower with a value of rose $plant with a value of tree $shrub with a value of Arbor Vitae but not $Shrub or $sHrub or $shruB Trying to refer to $Shrub if it is not defined will produce and error and stop the PHP script execution. PHP will render the error message as part of your visible web page. To pass an array, you need to (in Rev) convert the array to a single string with delimiters, pass this to PHP, and then run script lines in PHP to convert the string into an array (usually using a series of the 'explode' function) If a stack has a card for each {guitar, drum} and a field listing {Flaminco, 400 and Stratocaster,3000}{snare,150 base,350 tympani,2900} An example string sent to PHP build the string and then choose a name for the PHP script to use as the variable *note, you must pass the legal variable name for PHP, and it needs to match the name that the PHP script will use to work with the variable. musicArr=guitar~Flaminco,400^Stratocaster,3000|drum~snare,150^base, 350^tympani,2900 //PHP allows multi dimensional arrays, so we need to build it from the string $instruments = explode('|', $musicArr); then you explode each instrument and add it to the $instruments array then you explode each listed kind (Flaminco) and add it to the $instruments array and set the value at the same time = with the price (eg $2900 for the tympani) The result is one PHP variable that is a multidimensional array such that $price = $instruments['guitar']['Stratocaster'] // 3000 $price = $instruments['drum']['tympani'] // 2900 Fun and games and a little bit of stress. Jim Ault Las Vegas On Aug 9, 2009, at 2:12 PM, Mark Schonewille wrote: Yves, First of all, you need to define a variable. Without variables, php isn't even aware that you tried to send something. Second, you need to urlEncode your data. For example: put myVar= urlEncode(fld myFld) into myString post myString to url http://www.mondomaine.be/dossierscripts/ test.php If you have multiples variables, myString should be of the following format: myVar1= myData1 myVar2= myData2 where myDataX is urlEncoded. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com Submit your software products to http://www.quickestpublisher.com and get found! On 9 aug 2009, at 22:56, Yves COPPE wrote: re, text fld text tab text tab text text tab text tab text text tab text tab text about 10 lines Greetings. Yves COPPE yvesco...@skynet.be ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution Jim Ault jimaultw...@yahoo.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: post command (typo correction)
Please remember that a 'variable' in Rev is not the same as a 'variable' in a POST command sent to a PHP script. The PHP script parses the *single string* that is passed into the following: pairs of names and values... the name of the variable PHP will use, the string value of the variable Send this from Rev flower=roseplant=treeshrub=Arbor%20Vitae ( the %20 represents a valid space character to PHP) -- put flower=roseplant=treeshrub=Arbor%20Vitae into stringToSend post stringToSend to http://thisdomain.com/landscaping/inventory.php; PHP *parses* this incoming string to (case sensitive) $flower with a value of rose $plant with a value of tree $shrub with a value of Arbor Vitae but not $Shrub or $sHrub or $shruB Trying to refer to $Shrub if it is not defined will produce and error and stop the PHP script execution. PHP will render the error message as part of your visible web page. To pass an array, you need to (in Rev) convert the array to a single string with delimiters, pass this to PHP, and then run script lines in PHP to convert the string into an array (usually using a series of the 'explode' function) If a stack has a card for each {guitar, drum} and a field listing {Flaminco, 400 and Stratocaster,3000}{snare,150 base,350 tympani,2900} An example string sent to PHP build the string and then choose a name for the PHP script to use as the variable *note, you must pass the legal variable name for PHP, and it needs to match the name that the PHP script will use to work with the variable. musicArr=guitar~Flaminco,400^Stratocaster,3000|drum~snare,150^base, 350^tympani,2900 //PHP allows multi dimensional arrays, so we need to build it from the string $instruments = explode('|', $musicArr); then you explode each instrument and add it to the $instruments array then you explode each listed kind (Flaminco) and add it to the $instruments array and set the value at the same time = with the price (eg $2900 for the tympani) The result is one PHP variable that is a multidimensional array such that $price = $instruments['guitar']['Stratocaster'] // 3000 $price = $instruments['drum']['tympani'] // 2900 Fun and games and a little bit of stress. Jim Ault Las Vegas On Aug 9, 2009, at 2:12 PM, Mark Schonewille wrote: Yves, First of all, you need to define a variable. Without variables, php isn't even aware that you tried to send something. Second, you need to urlEncode your data. For example: put myVar= urlEncode(fld myFld) into myString post myString to url http://www.mondomaine.be/dossierscripts/ test.php If you have multiples variables, myString should be of the following format: myVar1= myData1 myVar2= myData2 where myDataX is urlEncoded. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com Submit your software products to http://www.quickestpublisher.com and get found! On 9 aug 2009, at 22:56, Yves COPPE wrote: re, text fld text tab text tab text text tab text tab text text tab text tab text about 10 lines Greetings. Yves COPPE yvesco...@skynet.be ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution Jim Ault jimaultw...@yahoo.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: More - Post Command Problem looks like a RunRev problem?
Hi Mark, I've tried it using a file, and with the code below, the command gets sent but shell doesn't return. The there is one function that wraps the post command, here it is along with the : constant kUseRunRevPostCommand=false function LibSoapPostCommand theHTTPHeader,theSOAPEnvelope,theSoapURL,@theSoapReply,@theSoapResponse local myShellCommand local myCommandLineResponse local myShellResult local myFilePathName get StackLogStringWithTime(cr cr --- cr cr) get StackLogStringWithTime(theSoapURL: theSoapURL) get StackLogStringWithTime(theSOAPEnvelope: theSOAPEnvelope) if kUseRunRevPostCommand = true then try set the httpheaders to theHTTPHeader --libUrlSetSSLVerification false -- -- Post the Data -- post theSOAPEnvelope to url theSoapURL -- -- Catch Time-Out Errors -- catch myError put the result into theSoapResponse put it into theSoapReply get StackLogStringWithTime(TIME-OUT - theSoapResponse: theSoapResponse) get StackLogStringWithTime(theSoapReply: theSoapReply) return empty end try -- -- Retreive Results -- put the result into theSoapResponse put it into theSoapReply get StackLogStringWithTime(theSoapResponse: theSoapResponse) get StackLogStringWithTime(theSoapReply: theSoapReply) else breakpoint put UtilStackGetTempFolderPathName() CURLTemp.txt into myFilePathName put theSOAPEnvelope into url(file: myFilePathName) put curl -s into myShellCommand repeat for each line myHeaderLine in theHTTPHeader put -H ' myHeaderLine ' after myShellCommand end repeat put -d @ myFilePathName theSoapURL after myShellCommand put shell(myShellCommand) into myCommandLineResponse put the result into myShellResult put myCommandLineResponse into theSoapResponse put myShellResult into theSoapReply get StackLogStringWithTime(theSoapResponse: theSoapResponse) get StackLogStringWithTime(theSoapReply: theSoapReply) delete file myFilePathName end if return empty end LibSoapPostCommand -- This is the contents of the temp file: -- ?xml version=1.0 encoding=UTF-8? SOAP-ENV:Envelope xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:ccn2=http://schemas.datacontract.org/2004/07/ ServiceContracts.Data xmlns:ccn3=http://schemas.microsoft.com/2003/10/Serialization/Arrays; xmlns:i0=http://bam.com/; SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/; xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; SOAP-ENV:Header /SOAP-ENV:Header SOAP-ENV:Body DbPing xmlns=http://bam.com/; /DbPing /SOAP-ENV:Body /SOAP-ENV:Envelope -- This is the Shell Command: curl -s -H 'Accept: text/xml' -H 'Accept: multipart/*' -H 'Content- length: 689' -H 'Content-Type: text/xml; charset=utf-8' -H 'SOAPAction: http://bandyaboutmusic.com/GenX/IAccountService/ DbPing' -d @/Documents/Programming/RunRevBase/Projects/GenX/RunTime/ Temp/CURLTemp.txt http://britservices.genxdev.com/Account.svc?wsdl When I run this from RunRev the shell() function never returns, the same happens if I run it from the command line. Thanks a lot Dave On 17 Nov 2008, at 16:32, Mark Smith wrote: Sorry, I should have said, the library requires 2.9. How big is the data you're sending? I've had trouble putting large amounts of data on the command line (maybe a limitation of rev's 'shell' call, or something else). I was suggesting this mainly as a way fo see if it gave you any indication of what the problem might be, whether or not it would be useful in 'production'. Anyway, you could certainly try passing the soap envelope on the command line (does writing it to a file really slow it down all that much?). Anyway, you'll need to url encode the data, so something like put curl -s into tCurlStr repeat for each line L in myHttpHeaders -- if you're only setting one header, you don't need a repeat, of course. put -H ' L ' after tCurlStr end repeat put -d - quote urlencode(mySoapEnvelope) quote tUrl after tCurlStr put shell(tCurlStr) into tResponse I think libUrl only ever puts errors into the result. What the shell call returns will be either the returned data, or an error (though the result may contain something if there was an error in the shell call itself). Also, I've just realised that if you do need to write to a tempfile, the line should be: put -d @ tFile tUrl after tCurlStr Best, Mark On 17 Nov 2008, at 16:10, Dave wrote: Hi, Thanks for this. I looked at your library and found that it won't run under
Re: More - Post Command Problem looks like a RunRev problem?
Dave, the only things I might try would be 1) remove the double quotes from :-H 'SOAPAction: http:// bandyaboutmusic.com/GenX/IAccountService/DbPing' --might cause confused parsing of the command, so: -H 'SOAPAction: http://bandyaboutmusic.com/GenX/IAccountService/DbPing' 2) are you sure that the url you're using http:// britservices.genxdev.com/Account.svc?wsdl should include the ?wsdl - it looks like a request for the wsdl, might this confuse the server? 3) try again using -v instead of -s, this puts curl in verbose mode and might show something useful... Best, Mark On 18 Nov 2008, at 13:39, Dave wrote: Hi Mark, I've tried it using a file, and with the code below, the command gets sent but shell doesn't return. The there is one function that wraps the post command, here it is along with the : constant kUseRunRevPostCommand=false function LibSoapPostCommand theHTTPHeader,theSOAPEnvelope,theSoapURL,@theSoapReply,@theSoapRespons e local myShellCommand local myCommandLineResponse local myShellResult local myFilePathName get StackLogStringWithTime(cr cr --- cr cr) get StackLogStringWithTime(theSoapURL: theSoapURL) get StackLogStringWithTime(theSOAPEnvelope: theSOAPEnvelope) if kUseRunRevPostCommand = true then try set the httpheaders to theHTTPHeader --libUrlSetSSLVerification false -- -- Post the Data -- post theSOAPEnvelope to url theSoapURL -- -- Catch Time-Out Errors -- catch myError put the result into theSoapResponse put it into theSoapReply get StackLogStringWithTime(TIME-OUT - theSoapResponse: theSoapResponse) get StackLogStringWithTime(theSoapReply: theSoapReply) return empty end try -- -- Retreive Results -- put the result into theSoapResponse put it into theSoapReply get StackLogStringWithTime(theSoapResponse: theSoapResponse) get StackLogStringWithTime(theSoapReply: theSoapReply) else breakpoint put UtilStackGetTempFolderPathName() CURLTemp.txt into myFilePathName put theSOAPEnvelope into url(file: myFilePathName) put curl -s into myShellCommand repeat for each line myHeaderLine in theHTTPHeader put -H ' myHeaderLine ' after myShellCommand end repeat put -d @ myFilePathName theSoapURL after myShellCommand put shell(myShellCommand) into myCommandLineResponse put the result into myShellResult put myCommandLineResponse into theSoapResponse put myShellResult into theSoapReply get StackLogStringWithTime(theSoapResponse: theSoapResponse) get StackLogStringWithTime(theSoapReply: theSoapReply) delete file myFilePathName end if return empty end LibSoapPostCommand -- This is the contents of the temp file: -- ?xml version=1.0 encoding=UTF-8? SOAP-ENV:Envelope xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:ccn2=http://schemas.datacontract.org/2004/07/ ServiceContracts.Data xmlns:ccn3=http://schemas.microsoft.com/2003/10/Serialization/Arrays; xmlns:i0=http://bam.com/; SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/; xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; SOAP-ENV:Header /SOAP-ENV:Header SOAP-ENV:Body DbPing xmlns=http://bam.com/; /DbPing /SOAP-ENV:Body /SOAP-ENV:Envelope -- This is the Shell Command: curl -s -H 'Accept: text/xml' -H 'Accept: multipart/*' -H 'Content-length: 689' -H 'Content-Type: text/xml; charset=utf-8' - H 'SOAPAction: http://bandyaboutmusic.com/GenX/IAccountService/ DbPing' -d @/Documents/Programming/RunRevBase/Projects/GenX/ RunTime/Temp/CURLTemp.txt http://britservices.genxdev.com/ Account.svc?wsdl When I run this from RunRev the shell() function never returns, the same happens if I run it from the command line. Thanks a lot Dave On 17 Nov 2008, at 16:32, Mark Smith wrote: Sorry, I should have said, the library requires 2.9. How big is the data you're sending? I've had trouble putting large amounts of data on the command line (maybe a limitation of rev's 'shell' call, or something else). I was suggesting this mainly as a way fo see if it gave you any indication of what the problem might be, whether or not it would be useful in 'production'. Anyway, you could certainly try passing the soap envelope on the command line (does writing it to a file really slow it down all that much?). Anyway, you'll need to url encode the data, so something like put curl -s into tCurlStr repeat for each line L in myHttpHeaders -- if you're only setting one header, you don't need a repeat, of course. put -H ' L
Re: More - Post Command Problem looks like a RunRev problem?
Dave I know you're trying the curl approach now, but did you ever try logging the request/response in the original post command? From earlier mail: Dave As you are getting back data (even if truncated), I'm guessing that Rev (libUrl) isn't seeing any error. But just to confirm, are you checking the result after each post? The normal result for this kind of problem is socket closed before end of file. It might be useful to check that it isn't a basic problem on the server side such as setting a wrong Content-length header. You could do this by either using libUrlSetLogField to log all requests/ responses, or if you can detect programmatically when a problem has occurred, use libUrlLastRHHeaders() to get the response from the server. (You'd need to do this before the next post command) As a start, it would let us know whether the server is using Content- length, or chunked transfer encoding, or neither. (It sounds like neither) To answer your very original question, there is no limit imposed on the amount of data returned by a post command. Cheers Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: More - Post Command Problem looks like a RunRev problem?
Hi Andre, I've got no clue where to start on this and anything that is written has to follow the interface as defined by the LibSoapPostCommand. Is there any sample code for this? Time is fast running out on this. What I really don't understand is why the post command is not working, I've tried this on 3.0 and I get the same problem. I reluctant to blame the RunRev code for this since it could be elsewhere. What would be really handy is a 3rd party extension that would handle the post command natively and then we could see. All the Best Dave On 18 Nov 2008, at 17:38, Andre Garzia wrote: Dave, You can also try scripting your post call by hand using socket routines from Rev itself. You basically assemble an HTTP request inside a string and use write to socket to send it around. This is pretty easy to do and gives you a lot of control over what is happening. Cheers andre ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
More - Post Command Problem looks like a RunRev problem?
Hi All, Please see below for the history of this problem. Since then I have some more information: I installed WireShark and recreated the problem. When I look at the captured information, it looks as if the response is being sent and received by server/client ok. It shows a number of TCP packets (TCP Segment of a reassembled PDU) and then one block that shows as HTTP/ XML. When I select this block it shows the packet reassembled as 23782 bytes. However when the error occurs, the response return by the RunRev post command only shows the first 2736 bytes, e.g. the rest of the reassembled block is truncated. I have the dumps as text files but they are too big to post here. When I looked up the post command in RunRev it says it is part of the internet library, however I can't find any source code for this. Is it available? I'd like to add some trace information so I can see if this library is being passed the whole block and if so why is it going wrong on this block. Is there another way to do this in RunRev? e.g. A alternative to the post command? Any ideas or suggestions on how to fix or even get a handle of this problem would be greatly appreciated. All the Best Dave -- I read records from a database, format them, and add them to a block of data. There is a blocking factor variable, it is set to 200, so I read 200 records from the database, block them into one big block and send it to the server via a post command. The Server then sends a response which can be variable in length, the response is in XML format. This process works well 99% of the time, but sometimes, (and this can be reproduced if the right data (or the wrong data in this case!) is present in the database). When this happens the response from the server is truncated in the middle of an XML node. As far as I can tell the difference is that by chance, a group of 200 records has caused the response to be over a certain size. If I set the BlockingFactor to 50, the problem goes away, but this causes a major slowdown. -- It is sending one block at a time, each block contains N records. There are around 10,500 records in the database. Each record has an XML node in the reply, depending on the content of the record sent, it will return different data of variable size. It appears if the block returned is greater than a certain size, it is truncated. Basically the process is: repeat for all Records in Database Read Record From Database Encode as XML Add to end of SendDataBlock if the number of records in SendDataBloack SendBlockingFactor then post SendDataBlock get response process response put empty into SendDataBlock end if end repeat ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: More - Post Command Problem looks like a RunRev problem?
Dave, I wonder if it would be worth trying to do the post using curl (or some other tool) to see if the problem still occurs? Also, have you looked at what actual bytes the truncated response ends with ie. is the server sending back something weird? Best, Mark On 17 Nov 2008, at 11:29, Dave wrote: Hi All, Please see below for the history of this problem. Since then I have some more information: I installed WireShark and recreated the problem. When I look at the captured information, it looks as if the response is being sent and received by server/client ok. It shows a number of TCP packets (TCP Segment of a reassembled PDU) and then one block that shows as HTTP/ XML. When I select this block it shows the packet reassembled as 23782 bytes. However when the error occurs, the response return by the RunRev post command only shows the first 2736 bytes, e.g. the rest of the reassembled block is truncated. I have the dumps as text files but they are too big to post here. When I looked up the post command in RunRev it says it is part of the internet library, however I can't find any source code for this. Is it available? I'd like to add some trace information so I can see if this library is being passed the whole block and if so why is it going wrong on this block. Is there another way to do this in RunRev? e.g. A alternative to the post command? Any ideas or suggestions on how to fix or even get a handle of this problem would be greatly appreciated. All the Best Dave -- I read records from a database, format them, and add them to a block of data. There is a blocking factor variable, it is set to 200, so I read 200 records from the database, block them into one big block and send it to the server via a post command. The Server then sends a response which can be variable in length, the response is in XML format. This process works well 99% of the time, but sometimes, (and this can be reproduced if the right data (or the wrong data in this case!) is present in the database). When this happens the response from the server is truncated in the middle of an XML node. As far as I can tell the difference is that by chance, a group of 200 records has caused the response to be over a certain size. If I set the BlockingFactor to 50, the problem goes away, but this causes a major slowdown. -- It is sending one block at a time, each block contains N records. There are around 10,500 records in the database. Each record has an XML node in the reply, depending on the content of the record sent, it will return different data of variable size. It appears if the block returned is greater than a certain size, it is truncated. Basically the process is: repeat for all Records in Database Read Record From Database Encode as XML Add to end of SendDataBlock if the number of records in SendDataBloack SendBlockingFactor then post SendDataBlock get response process response put empty into SendDataBlock end if end repeat ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: More - Post Command Problem looks like a RunRev problem?
Hi Mark, I can't figure out the correct format for the curl command, or how to call it from RunRev. Given that the current post command looks like this: set the httpHeaders to myHTTPHeader post mySoapEnvelope to url mySoapURL put it into myReply put the result into myResult How would I do this using curl? The function to send the command is called from all over the place so I would have to change it in the low level function, if so then the above is the only data I can get at and I have to return myReply and myResult in the same format as the post command would use. Is this possible using curl? Thanks a lot All the Best Dave On 17 Nov 2008, at 12:00, Mark Smith wrote: Dave, I wonder if it would be worth trying to do the post using curl (or some other tool) to see if the problem still occurs? Also, have you looked at what actual bytes the truncated response ends with ie. is the server sending back something weird? Best, Mark On 17 Nov 2008, at 11:29, Dave wrote: Hi All, Please see below for the history of this problem. Since then I have some more information: I installed WireShark and recreated the problem. When I look at the captured information, it looks as if the response is being sent and received by server/client ok. It shows a number of TCP packets (TCP Segment of a reassembled PDU) and then one block that shows as HTTP/XML. When I select this block it shows the packet reassembled as 23782 bytes. However when the error occurs, the response return by the RunRev post command only shows the first 2736 bytes, e.g. the rest of the reassembled block is truncated. I have the dumps as text files but they are too big to post here. When I looked up the post command in RunRev it says it is part of the internet library, however I can't find any source code for this. Is it available? I'd like to add some trace information so I can see if this library is being passed the whole block and if so why is it going wrong on this block. Is there another way to do this in RunRev? e.g. A alternative to the post command? Any ideas or suggestions on how to fix or even get a handle of this problem would be greatly appreciated. All the Best Dave -- I read records from a database, format them, and add them to a block of data. There is a blocking factor variable, it is set to 200, so I read 200 records from the database, block them into one big block and send it to the server via a post command. The Server then sends a response which can be variable in length, the response is in XML format. This process works well 99% of the time, but sometimes, (and this can be reproduced if the right data (or the wrong data in this case!) is present in the database). When this happens the response from the server is truncated in the middle of an XML node. As far as I can tell the difference is that by chance, a group of 200 records has caused the response to be over a certain size. If I set the BlockingFactor to 50, the problem goes away, but this causes a major slowdown. -- It is sending one block at a time, each block contains N records. There are around 10,500 records in the database. Each record has an XML node in the reply, depending on the content of the record sent, it will return different data of variable size. It appears if the block returned is greater than a certain size, it is truncated. Basically the process is: repeat for all Records in Database Read Record From Database Encode as XML Add to end of SendDataBlock if the number of records in SendDataBloack SendBlockingFactor then post SendDataBlock get response process response put empty into SendDataBlock end if end repeat ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: More - Post Command Problem looks like a RunRev problem?
Dave, you'll need something like this: put the tempname into tFile put mySoapEnvelope into url(file: tFile) -- this is so we don't pass a load of data on the command line put curl -s into tCurlStr repeat for each line L in myHttpHeaders -- if you're only setting one header, you don't need a repeat, of course. put -H ' L ' after tCurlStr end repeat put -d tFile tUrl after tCurlStr put shell(tCurlStr) into tResponse delete file tFile -- cleanup If you want to see the whole exchange including headers and everything, then replace -s with -v in the third line. Alternatively, you could try my library (http://futsoft.futilism.com/ revolutionstuff.html), in which case it would be put curl.new() into tCurl curl.setUrl tCurl, tUrl curl.setHeaders tCurl, myHttpHeaders curl.setPostData tCurl, mySoapEnvelope put curl.runTilDone(tCurl) into tResponse Best, Mark On 17 Nov 2008, at 14:40, Dave wrote: Hi Mark, I can't figure out the correct format for the curl command, or how to call it from RunRev. Given that the current post command looks like this: set the httpHeaders to myHTTPHeader post mySoapEnvelope to url mySoapURL put it into myReply put the result into myResult How would I do this using curl? The function to send the command is called from all over the place so I would have to change it in the low level function, if so then the above is the only data I can get at and I have to return myReply and myResult in the same format as the post command would use. Is this possible using curl? Thanks a lot All the Best Dave On 17 Nov 2008, at 12:00, Mark Smith wrote: Dave, I wonder if it would be worth trying to do the post using curl (or some other tool) to see if the problem still occurs? Also, have you looked at what actual bytes the truncated response ends with ie. is the server sending back something weird? Best, Mark On 17 Nov 2008, at 11:29, Dave wrote: Hi All, Please see below for the history of this problem. Since then I have some more information: I installed WireShark and recreated the problem. When I look at the captured information, it looks as if the response is being sent and received by server/client ok. It shows a number of TCP packets (TCP Segment of a reassembled PDU) and then one block that shows as HTTP/XML. When I select this block it shows the packet reassembled as 23782 bytes. However when the error occurs, the response return by the RunRev post command only shows the first 2736 bytes, e.g. the rest of the reassembled block is truncated. I have the dumps as text files but they are too big to post here. When I looked up the post command in RunRev it says it is part of the internet library, however I can't find any source code for this. Is it available? I'd like to add some trace information so I can see if this library is being passed the whole block and if so why is it going wrong on this block. Is there another way to do this in RunRev? e.g. A alternative to the post command? Any ideas or suggestions on how to fix or even get a handle of this problem would be greatly appreciated. All the Best Dave -- I read records from a database, format them, and add them to a block of data. There is a blocking factor variable, it is set to 200, so I read 200 records from the database, block them into one big block and send it to the server via a post command. The Server then sends a response which can be variable in length, the response is in XML format. This process works well 99% of the time, but sometimes, (and this can be reproduced if the right data (or the wrong data in this case!) is present in the database). When this happens the response from the server is truncated in the middle of an XML node. As far as I can tell the difference is that by chance, a group of 200 records has caused the response to be over a certain size. If I set the BlockingFactor to 50, the problem goes away, but this causes a major slowdown. -- It is sending one block at a time, each block contains N records. There are around 10,500 records in the database. Each record has an XML node in the reply, depending on the content of the record sent, it will return different data of variable size. It appears if the block returned is greater than a certain size, it is truncated. Basically the process is: repeat for all Records in Database Read Record From Database Encode as XML Add to end of SendDataBlock if the number of records in SendDataBloack SendBlockingFactor then post SendDataBlock get response process response put empty into SendDataBlock end if end repeat ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: More - Post Command Problem looks like a RunRev problem?
Hi, Thanks for this. I looked at your library and found that it won't run under RunRev 2.8.1.472 which is what I am using. Writing to a file will slow it down, do I *have* to use a file? If not, how would I format the command? Also there are two return variables using the post command and I need to return both: post mySoapEnvelope to url mySoapURL put it into myReply put the result into myResult How can I do this using the shell command? Would it be worth replacing the internet library from the latest version of RunRev? Will this work? Are they compatible? All the Best Dave On 17 Nov 2008, at 15:21, Mark Smith wrote: Dave, you'll need something like this: put the tempname into tFile put mySoapEnvelope into url(file: tFile) -- this is so we don't pass a load of data on the command line put curl -s into tCurlStr repeat for each line L in myHttpHeaders -- if you're only setting one header, you don't need a repeat, of course. put -H ' L ' after tCurlStr end repeat put -d tFile tUrl after tCurlStr put shell(tCurlStr) into tResponse delete file tFile -- cleanup If you want to see the whole exchange including headers and everything, then replace -s with -v in the third line. Alternatively, you could try my library (http:// futsoft.futilism.com/revolutionstuff.html), in which case it would be put curl.new() into tCurl curl.setUrl tCurl, tUrl curl.setHeaders tCurl, myHttpHeaders curl.setPostData tCurl, mySoapEnvelope put curl.runTilDone(tCurl) into tResponse Best, Mark On 17 Nov 2008, at 14:40, Dave wrote: Hi Mark, I can't figure out the correct format for the curl command, or how to call it from RunRev. Given that the current post command looks like this: set the httpHeaders to myHTTPHeader post mySoapEnvelope to url mySoapURL put it into myReply put the result into myResult How would I do this using curl? The function to send the command is called from all over the place so I would have to change it in the low level function, if so then the above is the only data I can get at and I have to return myReply and myResult in the same format as the post command would use. Is this possible using curl? Thanks a lot All the Best Dave On 17 Nov 2008, at 12:00, Mark Smith wrote: Dave, I wonder if it would be worth trying to do the post using curl (or some other tool) to see if the problem still occurs? Also, have you looked at what actual bytes the truncated response ends with ie. is the server sending back something weird? Best, Mark On 17 Nov 2008, at 11:29, Dave wrote: Hi All, Please see below for the history of this problem. Since then I have some more information: I installed WireShark and recreated the problem. When I look at the captured information, it looks as if the response is being sent and received by server/client ok. It shows a number of TCP packets (TCP Segment of a reassembled PDU) and then one block that shows as HTTP/XML. When I select this block it shows the packet reassembled as 23782 bytes. However when the error occurs, the response return by the RunRev post command only shows the first 2736 bytes, e.g. the rest of the reassembled block is truncated. I have the dumps as text files but they are too big to post here. When I looked up the post command in RunRev it says it is part of the internet library, however I can't find any source code for this. Is it available? I'd like to add some trace information so I can see if this library is being passed the whole block and if so why is it going wrong on this block. Is there another way to do this in RunRev? e.g. A alternative to the post command? Any ideas or suggestions on how to fix or even get a handle of this problem would be greatly appreciated. All the Best Dave -- I read records from a database, format them, and add them to a block of data. There is a blocking factor variable, it is set to 200, so I read 200 records from the database, block them into one big block and send it to the server via a post command. The Server then sends a response which can be variable in length, the response is in XML format. This process works well 99% of the time, but sometimes, (and this can be reproduced if the right data (or the wrong data in this case!) is present in the database). When this happens the response from the server is truncated in the middle of an XML node. As far as I can tell the difference is that by chance, a group of 200 records has caused the response to be over a certain size. If I set the BlockingFactor to 50, the problem goes away, but this causes a major slowdown. -- It is sending one block at a time, each block contains N records. There are around 10,500 records in the database. Each record has an XML node in the reply, depending on the content of the record sent, it will return different data of variable size. It appears if the block returned is greater than
Re: More - Post Command Problem looks like a RunRev problem?
Sorry, I should have said, the library requires 2.9. How big is the data you're sending? I've had trouble putting large amounts of data on the command line (maybe a limitation of rev's 'shell' call, or something else). I was suggesting this mainly as a way fo see if it gave you any indication of what the problem might be, whether or not it would be useful in 'production'. Anyway, you could certainly try passing the soap envelope on the command line (does writing it to a file really slow it down all that much?). Anyway, you'll need to url encode the data, so something like put curl -s into tCurlStr repeat for each line L in myHttpHeaders -- if you're only setting one header, you don't need a repeat, of course. put -H ' L ' after tCurlStr end repeat put -d - quote urlencode(mySoapEnvelope) quote tUrl after tCurlStr put shell(tCurlStr) into tResponse I think libUrl only ever puts errors into the result. What the shell call returns will be either the returned data, or an error (though the result may contain something if there was an error in the shell call itself). Also, I've just realised that if you do need to write to a tempfile, the line should be: put -d @ tFile tUrl after tCurlStr Best, Mark On 17 Nov 2008, at 16:10, Dave wrote: Hi, Thanks for this. I looked at your library and found that it won't run under RunRev 2.8.1.472 which is what I am using. Writing to a file will slow it down, do I *have* to use a file? If not, how would I format the command? Also there are two return variables using the post command and I need to return both: post mySoapEnvelope to url mySoapURL put it into myReply put the result into myResult How can I do this using the shell command? Would it be worth replacing the internet library from the latest version of RunRev? Will this work? Are they compatible? All the Best Dave On 17 Nov 2008, at 15:21, Mark Smith wrote: Dave, you'll need something like this: put the tempname into tFile put mySoapEnvelope into url(file: tFile) -- this is so we don't pass a load of data on the command line put curl -s into tCurlStr repeat for each line L in myHttpHeaders -- if you're only setting one header, you don't need a repeat, of course. put -H ' L ' after tCurlStr end repeat put -d tFile tUrl after tCurlStr put shell(tCurlStr) into tResponse delete file tFile -- cleanup If you want to see the whole exchange including headers and everything, then replace -s with -v in the third line. Alternatively, you could try my library (http:// futsoft.futilism.com/revolutionstuff.html), in which case it would be put curl.new() into tCurl curl.setUrl tCurl, tUrl curl.setHeaders tCurl, myHttpHeaders curl.setPostData tCurl, mySoapEnvelope put curl.runTilDone(tCurl) into tResponse Best, Mark On 17 Nov 2008, at 14:40, Dave wrote: Hi Mark, I can't figure out the correct format for the curl command, or how to call it from RunRev. Given that the current post command looks like this: set the httpHeaders to myHTTPHeader post mySoapEnvelope to url mySoapURL put it into myReply put the result into myResult How would I do this using curl? The function to send the command is called from all over the place so I would have to change it in the low level function, if so then the above is the only data I can get at and I have to return myReply and myResult in the same format as the post command would use. Is this possible using curl? Thanks a lot All the Best Dave On 17 Nov 2008, at 12:00, Mark Smith wrote: Dave, I wonder if it would be worth trying to do the post using curl (or some other tool) to see if the problem still occurs? Also, have you looked at what actual bytes the truncated response ends with ie. is the server sending back something weird? Best, Mark On 17 Nov 2008, at 11:29, Dave wrote: Hi All, Please see below for the history of this problem. Since then I have some more information: I installed WireShark and recreated the problem. When I look at the captured information, it looks as if the response is being sent and received by server/client ok. It shows a number of TCP packets (TCP Segment of a reassembled PDU) and then one block that shows as HTTP/XML. When I select this block it shows the packet reassembled as 23782 bytes. However when the error occurs, the response return by the RunRev post command only shows the first 2736 bytes, e.g. the rest of the reassembled block is truncated. I have the dumps as text files but they are too big to post here. When I looked up the post command in RunRev it says it is part of the internet library, however I can't find any source code for this. Is it available? I'd like to add some trace information so I can see if this library is being passed the whole block and if so why is it going wrong on this block. Is there another way to do this in RunRev? e.g. A alternative to the post command
Re: Post Command Problem
Hi, I read records from a database, format them, and add them to a block of data. There is a blocking factor variable, it is set to 200, so I read 200 records from the database, block them into one big block and send it to the server via a post command. The Server then sends a response which can be variable in length, the response is in XML format. This process works well 99% of the time, but sometimes, (and this can be reproduced if the right data (or the wrong data in this case!) is present in the database). When this happens the response from the server is truncated in the middle of an XML node. As far as I can tell the difference is that by chance, a group of 200 records has caused the response to be over a certain size. If I set the BlockingFactor to 50, the problem goes away, but this causes a major slowdown. All the Best Dave On 11 Nov 2008, at 21:18, Dave Cragg wrote: Dave I'm not clear about the problem you are having. When you say you are receiving blocks of data, is this as a result of a series of post commands? (one block per post) If so, it seems some responses contain less data than expected. If you are getting no error (the result is empty), I can think of 2 possible causes. 1. The server is wrongly setting the Content-Length header 2. The server is not using a Content-Length header and is not using the chunked transfer-encoding. This is the case with some servers. This forces the client (Rev app) to use the closing of the connection as a signal that the transfer has ended. I've seen cases (although not recently) where the connection is apparently closed before all data is read. (I'm sure there are other possible causes.) I'd suspect the latter cause. But only because I've never seen the first one occur. I don't know how ASP.NET works. But I remember having a problem like this with Rev CGIs on an IIS server. One thing that helped was to put a short wait (40 milliseconds) at the end of the CGI script. This seemed to prevent the server from closing the connection prematurely (from the Rev client's point of view.) If I've misunderstood your problem, sorry. Dave On Mon, Nov 10, 2008 at 1:27 PM, Dave [EMAIL PROTECTED] wrote: Hi All, I'm getting a weird error when receiving data with the post command. I am receiving blocks of data from a server and some blocks seem to get truncated. Is this a limit on the size of a data block received with the post command? If there is, how can I set it bigger? Thanks a lot All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Post Command Problem
Dave As you are getting back data (even if truncated), I'm guessing that Rev (libUrl) isn't seeing any error. But just to confirm, are you checking the result after each post? The normal result for this kind of problem is socket closed before end of file. It might be useful to check that it isn't a basic problem on the server side such as setting a wrong Content-length header. You could do this by either using libUrlSetLogField to log all requests/ responses, or if you can detect programmatically when a problem has occurred, use libUrlLastRHHeaders() to get the response from the server. (You'd need to do this before the next post command) As a start, it would let us know whether the server is using Content- length, or chunked transfer encoding, or neither. (It sounds like neither) To answer your very original question, there is no limit imposed on the amount of data returned by a post command. Cheers Dave On 13 Nov 2008, at 11:19, Dave wrote: Hi, I read records from a database, format them, and add them to a block of data. There is a blocking factor variable, it is set to 200, so I read 200 records from the database, block them into one big block and send it to the server via a post command. The Server then sends a response which can be variable in length, the response is in XML format. This process works well 99% of the time, but sometimes, (and this can be reproduced if the right data (or the wrong data in this case!) is present in the database). When this happens the response from the server is truncated in the middle of an XML node. As far as I can tell the difference is that by chance, a group of 200 records has caused the response to be over a certain size. If I set the BlockingFactor to 50, the problem goes away, but this causes a major slowdown. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Post Command Problem
On 11 Nov 2008, at 21:18, Dave Cragg wrote: Dave I'm not clear about the problem you are having. When you say you are receiving blocks of data, is this as a result of a series of post commands? (one block per post) It is sending one block at a time, each block contains N records. There are around 10,500 records in the database. Each record has an XML node in the reply, depending on the content of the record sent, it will return different data of variable size. It appears if the block returned is greater than a certain size, it is truncated. Basically the process is: repeat for all Records in Database Read Record From Database Encode as XML Add to end of SendDataBlock if the number of records in SendDataBloack SendBlockingFactor then post database get response process response end if end repeat All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Post Command Problem
Dave I'm not clear about the problem you are having. When you say you are receiving blocks of data, is this as a result of a series of post commands? (one block per post) If so, it seems some responses contain less data than expected. If you are getting no error (the result is empty), I can think of 2 possible causes. 1. The server is wrongly setting the Content-Length header 2. The server is not using a Content-Length header and is not using the chunked transfer-encoding. This is the case with some servers. This forces the client (Rev app) to use the closing of the connection as a signal that the transfer has ended. I've seen cases (although not recently) where the connection is apparently closed before all data is read. (I'm sure there are other possible causes.) I'd suspect the latter cause. But only because I've never seen the first one occur. I don't know how ASP.NET works. But I remember having a problem like this with Rev CGIs on an IIS server. One thing that helped was to put a short wait (40 milliseconds) at the end of the CGI script. This seemed to prevent the server from closing the connection prematurely (from the Rev client's point of view.) If I've misunderstood your problem, sorry. Dave On Mon, Nov 10, 2008 at 1:27 PM, Dave [EMAIL PROTECTED] wrote: Hi All, I'm getting a weird error when receiving data with the post command. I am receiving blocks of data from a server and some blocks seem to get truncated. Is this a limit on the size of a data block received with the post command? If there is, how can I set it bigger? Thanks a lot All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Post Command Problem
Hi Andre, Thanks for the help. This is a weird problem, here's a bit more info: We are sending records to the server encoded as XML, this works fine 99% of the time. The app reads records from a DB and blocks this into a big block using a SendBlockingFactor. If this is set to 200, I get the problem *if* the response is over a certain (yet to be determined) size. If I reduce the blocking factor (to say 50), it works (since the response is not smaller), however this slows it down big time. I will talk to the server people today. We are using IIS and ASP.NET on the server. All the Best Dave On 11 Nov 2008, at 05:06, Andre Garzia wrote: Dave, are you using CGI or a custom server? Content can be chuncked in HTTP 1.1, this means that the server can slice the content and send it in little chunks for you to reassemble. Check this link which is very useful: http://www.jmarshall.com/easy/http/ (HTTP Made Really Easy). This document will explain in plain english the HTTP protocol. If you're using CGI, I believe Apache may reassemble chunked transfers for you, if it's your own server, you should do it yourself, or tell the client machine not to slice anything. Now, the post data might be corrupt, a connection might drop. Check the length against CONTENT-LENGTH header. Andre On Mon, Nov 10, 2008 at 1:27 PM, Dave [EMAIL PROTECTED] wrote: Hi All, I'm getting a weird error when receiving data with the post command. I am receiving blocks of data from a server and some blocks seem to get truncated. Is this a limit on the size of a data block received with the post command? If there is, how can I set it bigger? Thanks a lot All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Post Command Problem
Hi All, I'm getting a weird error when receiving data with the post command. I am receiving blocks of data from a server and some blocks seem to get truncated. Is this a limit on the size of a data block received with the post command? If there is, how can I set it bigger? Thanks a lot All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Post Command Problem
Dave, are you using CGI or a custom server? Content can be chuncked in HTTP 1.1, this means that the server can slice the content and send it in little chunks for you to reassemble. Check this link which is very useful: http://www.jmarshall.com/easy/http/ (HTTP Made Really Easy). This document will explain in plain english the HTTP protocol. If you're using CGI, I believe Apache may reassemble chunked transfers for you, if it's your own server, you should do it yourself, or tell the client machine not to slice anything. Now, the post data might be corrupt, a connection might drop. Check the length against CONTENT-LENGTH header. Andre On Mon, Nov 10, 2008 at 1:27 PM, Dave [EMAIL PROTECTED] wrote: Hi All, I'm getting a weird error when receiving data with the post command. I am receiving blocks of data from a server and some blocks seem to get truncated. Is this a limit on the size of a data block received with the post command? If there is, how can I set it bigger? Thanks a lot All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: POST command
On 4 Jul 2006, at 16:35, Richard Miller wrote: Is there any way to stop, or check on the status of, an ongoing POST command? For example, if a POST command had not completed within 2 seconds, can it be aborted? To check/show the status, you can use libUrlSetStatusCallback. (see the Rev docs for a very basic example). There is no official way to stop a post command. However, you could try using the following undocumented command to achieve this: ulCancelRequest url For example, ulCancelRequest http://www.somewere.com/mypost.cgi; This is an internal libUrl handler that is used by the unload url routine. The same handler can also be used to cancel get url requests. (non-blocking calls such as load url, libUrlDownloadToFile, etc can be cancelled by using unload url) However, if you use it, be aware that it may not always be available in future liburl releases (unlikely), or it may get renamed (a little more likely). So check that it still works should you upgrade the libUrl version used in your app. Cheers Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
POST command
Is there any way to stop, or check on the status of, an ongoing POST command? For example, if a POST command had not completed within 2 seconds, can it be aborted? Thanks. Richard Miller Imprinter Technologies ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: post command example?
Devin Asay wrote: I need to send some data to a php page on a web server, just a short string like abc2. I've read all I can find on the post command in the documentation, but can't figure out how to format the data so the php script will read it. My stack: contents of fld uid: abc2 (I also tried [ name=netid value=dna3 ] as the value of the field. Sans the [].) the post button script: on mouseUp post urlencode(fld uid) to url fld urlText -- also tried without urlencode set the htmltext of fld returnedText to it end mouseUp The result returned makes it obvious that the php script executed, but never received the value abc2. FWIW, the php script (one I wrote, that works when I hard code everything) uses the $POST_[value name here] format to grab the data. I am a neophyte in php land, but have used this method successfully in the past to pass values from html forms. There are no clear examples of how to do this in the docs, and the list archive at http://lists.runrev.com seems to be offline at the moment. Can anyone point me in the right direction? Devin Hi Devin, Maybe the problem is that you need to use ampersand to delimit the name value pairs rather than space. Here is how I format the data put any old text. into msgtext put urlencode(msgtext) into msgtext put username into tuser put username= tuser message= msgtext into data ## note no spaces and the use of ampersand to delimit the ## name value pairs ## tuser is known not to require urlencoding put http://domain/path/document.php; into phpurl post data to url phpurl HTH Martin Baxter ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
post command example?
I need to send some data to a php page on a web server, just a short string like abc2. I've read all I can find on the post command in the documentation, but can't figure out how to format the data so the php script will read it. My stack: contents of fld uid: abc2 (I also tried [ name=netid value=dna3 ] as the value of the field. Sans the [].) the post button script: on mouseUp post urlencode(fld uid) to url fld urlText -- also tried without urlencode set the htmltext of fld returnedText to it end mouseUp The result returned makes it obvious that the php script executed, but never received the value abc2. FWIW, the php script (one I wrote, that works when I hard code everything) uses the $POST_[value name here] format to grab the data. I am a neophyte in php land, but have used this method successfully in the past to pass values from html forms. There are no clear examples of how to do this in the docs, and the list archive at http://lists.runrev.com seems to be offline at the moment. Can anyone point me in the right direction? Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
post command example?
I need to send some data to a php page on a web server, just a short string like abc2. I've read all I can find on the post command in the documentation, but can't figure out how to format the data so the php script will read it. My stack: contents of fld uid: abc2 (I also tried [ name=netid value=dna3 ] as the value of the field. Sans the [].) the post button script: on mouseUp post urlencode(fld uid) to url fld urlText -- also tried without urlencode set the htmltext of fld returnedText to it end mouseUp The result returned makes it obvious that the php script executed, but never received the value abc2. FWIW, the php script (one I wrote, that works when I hard code everything) uses the $POST_[value name here] format to grab the data. I am a neophyte in php land, but have used this method successfully in the past to pass values from html forms. There are no clear examples of how to do this in the docs, and the list archive at http://lists.runrev.com seems to be offline at the moment. Can anyone point me in the right direction? Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
post command example?
Sorry if you're getting multiple posts from me. I seem to be having the same problem others are having getting my posts to the list. I have notified [EMAIL PROTECTED] DNA --original message I need to send some data to a php page on a web server, just a short string like abc2. I've read all I can find on the post command in the documentation, but can't figure out how to format the data so the php script will read it. My stack: contents of fld uid: abc2 (I also tried [ name=netid value=dna3 ] as the value of the field. Sans the [].) the post button script: on mouseUp post urlencode(fld uid) to url fld urlText -- also tried without urlencode set the htmltext of fld returnedText to it end mouseUp The result returned makes it obvious that the php script executed, but never received the value abc2. FWIW, the php script (one I wrote, that works when I hard code everything) uses the $POST_[value name here] format to grab the data. I am a neophyte in php land, but have used this method successfully in the past to pass values from html forms. There are no clear examples of how to do this in the docs, and the list archive at http://lists.runrev.com seems to be offline at the moment. Can anyone point me in the right direction? Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Post command
Hi Alain, Le 1 mai 04, à 02:41, Alain Farmer a écrit : Hello, I need help, folks. I have been creating a MetaCard stack that submits to a server-side PHP program. The payload of the post cmd is of type text/xml and, specifically, it is the XML that an XML-RPC program expects. The above submit works fine, and the server-side program returns what it is supposed to, b-u-t ... and here's the problem ... when the content is lengthy, my client-side stack does NOT wait long enough for the whole reply, and breaks-off the HTTP connection too soon. What do I need to do to make my MC client WAIT for the server-side program to complete the transmission of its reply? Should I be using the urlStatus function? I use this kind of POST method handler without problem all the time to access server-sided Rev or MC apps trough Apache and a PHP sockets listener/port translator. The first below line is important : set httpheaders to Content-type: application/x-www-form-urlencoded return Try to see if you can pick somthing usable from the example code below... on adddatas if (fld citation of card 1 of stack ccitalis is not * \ and fld citation of card 1 of stack ccitalis is not \ and fld citation of card 1 of stack ccitalis is not Saisir ici la nouvelle citation... \ and fld citation of card 1 of stack ccitalis is not Saisir ici les extraits de citation (mots-clés et/ou expressions littérales - utiliser quote + quote comme item de concaténation) entrant dans la sélection de recherche...) \ and (fld auteur__ of card 1 of stack ccitalis is not * \ and fld auteur__ of card 1 of stack ccitalis is not \ and fld auteur__ is not Saisir ici le nom de l'auteur... \ and fld auteur__ of card 1 of stack ccitalis is not Saisir ici les noms d'auteurs (utiliser quote + quote comme item de concaténation) entrant dans la sélection de recherche...) \ and (fld concept_ of card 1 of stack ccitalis is not * \ and fld concept_ of card 1 of stack ccitalis is not \ and fld concept_ of card 1 of stack ccitalis is not Saisir ici le concept de référence... \ and fld concept_ of card 1 of stack ccitalis is not Saisir ici le concept entrant dans la sélection de recherche...) then put ci001=FE8END= into retour set httpheaders to Content-type: application/x-www-form-urlencoded return post retour to url (fld csrecents of cd 2 of stack ccitalis) if it is then answer La connexion avec le serveur distant est rompue. return return \ Vérifiez votre configuration d'accès à l'internet exit adddatas end if if lineoffset(word 1 to -1 of fld slogin of cd 2 of stack ccitalis ¶ word 1 to -1 of fld smdp of cd 2 of stack ccitalis ¶,macoscharset(it)) is not 0 then put |TI1= fld citation \ |TI2= fld auteur__ \ |TI3= fld titre___ \ |TI4= fld date \ |TI5= fld concept_ \ |TI6= fld comment_ \ |IDC= encef(word 1 to -1 of fld slogin of cd 2 of stack ccitalis) \ |VAL= encef(word 1 to -1 of fld smdp of cd 2 of stack ccitalis) into larequete put isocharset(larequete) into larequete replace with ¶ in larequete replace | with in larequete put ci001=FN1 urlencode(larequete) END= into retour set httpheaders to Content-type: application/x-www-form-urlencoded return post retour to url (fld csrecents of cd 2 of stack ccitalis) if it is then answer La connexion avec le serveur distant est rompue. return return \ Vérifiez votre configuration d'accès à l'internet return avant de poursuivre. return return \ (succès des tests de 0% en 0 secondes) exit adddatas else answer it else answer Vous devez vous authentifier comme utilisateur return habilité à la saisie avant de pouvoir proposer de nouvelles citations ! else answer Saisissez, au minimum, une citation un auteur et un concept, SVP ! end adddatas If the server side of your app is a MC/Rev Stack or Script, it's important to add the below line of code to the on preopenstack or on startup handlers : set the socketTimeoutInterval to 10 Such kind of requests runs without troubble. In about testing the limits of the method (MC/Rev client app, Apache + PHP + MC app server + PostgreSQL back-end), it's able to let the client receive up to 16 Mo of datas peer query trough a 10 Mbits LAN... Hope this will help, Kind Regards, Pierre Btw, this XMLRPC stack will be shared with the community and will, therefore, help a *LOT* of people; notably the Rev and Pan wikis, not to mention a school commission, a network of consultants, the lab I work for, etc. So please help me if you can, Alain F __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover
Re: Norton Internet Security (NIS) and Post command failure
On 7/2/03 5:22 am, Tariel Gogoberidze [EMAIL PROTECTED] wrote: We are also badly hit by this issue. Our users with windows XP and NIS installed can't send post command. Sometimes Norton askes for permision to allow MC stanalone to work but then blocks it anyway. Short of uninstalling (which users hate to do for obvious reasons) nothing helps. I really hope somebody have a solution for this This isn't something we can address, there are *many* other applications that get completely messed up by having Norton installed too. If everyone who has been affected by this could file a bug report with them, that would be the best thing... Kind regards, Kevin Kevin Miller [EMAIL PROTECTED] http://www.runrev.com/ Runtime Revolution Limited - The Solution for Software Development Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re:Re: Norton Internet Security (NIS) and Post command failure
Date: Sat, 08 Feb 2003 00:55:04 +1000 Subject: Re: Norton Internet Security (NIS) and Post command failure From: [EMAIL PROTECTED] [EMAIL PROTECTED] Hi Tariel, Can you confirm that this happens *also* with Revolution standalones, or does it just happen with MC? Also, does it only affect POST commands, or also GET? Valetia There are problems with MC access to internet with Norton Internet Security (NIS) installed on Win XP. NIS must be uninstalled, not merely turned off. Our users with windows XP and NIS installed can't send post command. Sometimes Norton asks for permission to allow MC standalone to work but then blocks it anyway. I guess I can confirm it indirectly. It affects post/get commands of MC v. 2.3.2 through 2.4.3 with latest libUrl 1.0.8b1. The same thing if we are using our own Post handler bypassing LibUrl MC v 2.3.2 engine = Rev 1.1.1 engine MC v 2.4.x - 2.5 engine = Rev v 2.0 engine Both are using same libUrl. So, logically it must affect Rev as well According to Rich Herz... The problem I've seen is: after 1st socket of session times out, 2nd socket connection attempt fails, although after wait of approx. 7 minutes with MetaCard (v. 2.4.3, libUrl 1.0.8b1) still open, a second connection can be made. I understand that this problem must be addressed to Symantec rather than to MC or Rev teams, but I posted it here in hope that somebody have a workaround to this problem that allows to disable NIS or teach it to ignore libUrl calls. I don't have computer with win XP and NIS to research this but our users with this config can't connect for sure. They tried to disable NIS but this doesn't help. Only uninstalling solves the problem Below are some extracts from user feedback I had actually disabled (or so I thought), these services. But when I went to see my processes running, I saw NISSERV.EXE. I manually removed this and a few other NIS files and renamed the *.exe files in the Norton Internet Security Directory. After this everything began to work fine -- I also discovered that after disabling and ending some of the processes, if you restart, NIS restarts the processes again and there is no way to stop it from doing that, short of a complete uninstall. It is necessary to disable NIS and turn off all NIS processes manually every time you want to use program. additionally, my copy of NIS came bundled with Norton AntiVirus, (with the computer}, so I had to disable both to truly disable NIS, leaving me with no a/v protection at all while I was online with the program. That's all I currently know about this issue Best Regards Tariel Gogoberidze ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Norton Internet Security (NIS) and Post command failure
This problem was already mentioned either on this or MC list by Rich Herz There are problems with MC access to internet with Norton Internet Security (NIS) installed on Win XP. NIS must be uninstalled, not merely turned off. -- NIS on Win 98 seems to be working OK. Rich Herz We are also badly hit by this issue. Our users with windows XP and NIS installed can't send post command. Sometimes Norton askes for permision to allow MC stanalone to work but then blocks it anyway. Short of uninstalling (which users hate to do for obvious reasons) nothing helps. I really hope somebody have a solution for this Thanks in advance for suggestions Tariel Gogoberidze ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution