[flexcoders] Re: HTTP Request Error and long strings
Hi, I'm trying to send a nested array object using the method below but I still seem to be getting an HTTP request error and I'm not sure why. Any help would be greatly appreciated. public function useHttpService(batchContainer:Object):void { var container:String = JSON.encode(batchContainer); var test:Object = new Object(); test.data = container; service = new HTTPService(); service.url = http://172.19.60.128:8080/ViewDuration:registerBatchEvent/;; logger.info(service.url: + service.url); service.method = POST; service.useProxy = false; service.resultFormat = text; service.addEventListener(result, httpResult); service.addEventListener(fault, httpFault); logger.info(batchContainer final: + batchContainer); logger.info(batchContainer encoded: + container); service.send(test); } Claud --- In flexcoders@yahoogroups.com, michael.ritchie [EMAIL PROTECTED] wrote: Tracy, Your last suggestion did the trick. I was able to send my large string using by sending the data in the body, not the url. For the list, here is the fix to my problem. Tracy writes: I believe that when the message body is empty, Flex always uses GET. And when you put your data on the url, you are using the querystring and not the body. Instead. use the naked url, and in AS, do: var oRequest:Object = new Object(); oRequest.data = { ...large JSON data sring ...} JSONSaveCollection.send(oRequest); // call to the HTTPService --- Thanks again Tracy... :D Michael --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Change the method to POST. GET has a limit, but I have used POST for quite large data streams. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of michael.ritchie Sent: Thursday, January 25, 2007 3:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTP Request Error and long strings There seems to be a size limit the value you set on the url propery for a Flex HTTPService call, around 12000 characters (12KB?). Could there be maxrequestlength setting in a config file for Flex 2 some place that we can adjust the limit? When we send a JSON string on with the HTTP service that is over 12000 characters we receive the following error message: Error: [RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: [...12716 character string...] We tested this on both IE 7 and Firefox. I don't think this is a browser post limit as we have other non-Flex applications that post that many characters. Michael Ritchie AOL Xdrive
[flexcoders] Re: HTTP Request Error and long strings
What's the error saying? Whatever, at least two suggestions: 1. The URL is not valid with an : in it. Encode it like http://172.19.60.128:8080/ViewDuration%3AregisterBatchEvent/ 2. Always use constants to avoid typing errors, e.g. service.addEventListener(ResultEvent.RESULT, httpResult) Marc --- In flexcoders@yahoogroups.com, claudfernan04 [EMAIL PROTECTED] wrote: Hi, I'm trying to send a nested array object using the method below but I still seem to be getting an HTTP request error and I'm not sure why. Any help would be greatly appreciated. public function useHttpService(batchContainer:Object):void { var container:String = JSON.encode(batchContainer); var test:Object = new Object(); test.data = container; service = new HTTPService(); service.url = http://172.19.60.128:8080/ViewDuration:registerBatchEvent/;; logger.info(service.url: + service.url); service.method = POST; service.useProxy = false; service.resultFormat = text; service.addEventListener(result, httpResult); service.addEventListener(fault, httpFault); logger.info(batchContainer final: + batchContainer); logger.info(batchContainer encoded: + container); service.send(test); } Claud --- In flexcoders@yahoogroups.com, michael.ritchie michael.ritchie@ wrote: Tracy, Your last suggestion did the trick. I was able to send my large string using by sending the data in the body, not the url. For the list, here is the fix to my problem. Tracy writes: I believe that when the message body is empty, Flex always uses GET. And when you put your data on the url, you are using the querystring and not the body. Instead. use the naked url, and in AS, do: var oRequest:Object = new Object(); oRequest.data = { ...large JSON data sring ...} JSONSaveCollection.send(oRequest); // call to the HTTPService --- Thanks again Tracy... :D Michael --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Change the method to POST. GET has a limit, but I have used POST for quite large data streams. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of michael.ritchie Sent: Thursday, January 25, 2007 3:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTP Request Error and long strings There seems to be a size limit the value you set on the url propery for a Flex HTTPService call, around 12000 characters (12KB?). Could there be maxrequestlength setting in a config file for Flex 2 some place that we can adjust the limit? When we send a JSON string on with the HTTP service that is over 12000 characters we receive the following error message: Error: [RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: [...12716 character string...] We tested this on both IE 7 and Firefox. I don't think this is a browser post limit as we have other non-Flex applications that post that many characters. Michael Ritchie AOL Xdrive
Re: [flexcoders] Re: HTTP request error
On Friday 14 Nov 2008, markgoldin_2000 wrote: Nobody has run into this problem? I have googled this error, I didn't see the actual error message in your message. did not find anything that helped. Please help. I would guess a DNS problem though. -- Tom Chiverton Helping to dramatically iterate industry-wide metrics This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: HTTP request error
I will dblcheck but I have added domain users to my virtual folder. --- In flexcoders@yahoogroups.com, Rob Kunkle [EMAIL PROTECTED] wrote: It sounds as though only local admins have permission to the directories and files in your web directories. You might want to check permissions on the files and folders, and make sure that regular users also have permissions. --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote: Ok, I have run more tests. I have found out that if I add a user that I use for testing to a local admin of my test box then it works. Not like this is a solution but at least now I know where the problem is. Any ideas I can use to have my test box serving other then me only users? --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote: When I am setting up HTTPService I am using a string I have showed below: http://servername/web directory/subfolder/asppage.asp with a few parameters. And then from Browser: http://servername/web directory/startpage.html --- In flexcoders@yahoogroups.com, valdhor stevedepp@ wrote: So what is the code to produce this error? There are many places you can use a URI in Flex. --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote: HTTP request error in a small alert box. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: What error? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Friday, November 14, 2008 4:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTTP request error Nobody has run into this problem? I have googled this error, did not find anything that helped. Please help. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , markgoldin_2000 markgoldin_2000@ wrote: I am getting this error when I am trying to access my web site from computers that are not running under my name. This my url in flex: http://servername/web http://servername/web directory/subfolder/asppage.asp In the browser I am using the following: http://servername/web http://servername/web directory/startpage.html Works for me from different computers but not for other users. Can someone help, please?
[flexcoders] Re: HTTP request error
It sounds as though only local admins have permission to the directories and files in your web directories. You might want to check permissions on the files and folders, and make sure that regular users also have permissions. --- In flexcoders@yahoogroups.com, markgoldin_2000 [EMAIL PROTECTED] wrote: Ok, I have run more tests. I have found out that if I add a user that I use for testing to a local admin of my test box then it works. Not like this is a solution but at least now I know where the problem is. Any ideas I can use to have my test box serving other then me only users? --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote: When I am setting up HTTPService I am using a string I have showed below: http://servername/web directory/subfolder/asppage.asp with a few parameters. And then from Browser: http://servername/web directory/startpage.html --- In flexcoders@yahoogroups.com, valdhor stevedepp@ wrote: So what is the code to produce this error? There are many places you can use a URI in Flex. --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote: HTTP request error in a small alert box. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: What error? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Friday, November 14, 2008 4:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTTP request error Nobody has run into this problem? I have googled this error, did not find anything that helped. Please help. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , markgoldin_2000 markgoldin_2000@ wrote: I am getting this error when I am trying to access my web site from computers that are not running under my name. This my url in flex: http://servername/web http://servername/web directory/subfolder/asppage.asp In the browser I am using the following: http://servername/web http://servername/web directory/startpage.html Works for me from different computers but not for other users. Can someone help, please?
[flexcoders] Re: HTTP request error
Nobody has run into this problem? I have googled this error, did not find anything that helped. Please help. --- In flexcoders@yahoogroups.com, markgoldin_2000 [EMAIL PROTECTED] wrote: I am getting this error when I am trying to access my web site from computers that are not running under my name. This my url in flex: http://servername/web directory/subfolder/asppage.asp In the browser I am using the following: http://servername/web directory/startpage.html Works for me from different computers but not for other users. Can someone help, please?
RE: [flexcoders] Re: HTTP request error
What error? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Friday, November 14, 2008 4:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTTP request error Nobody has run into this problem? I have googled this error, did not find anything that helped. Please help. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , markgoldin_2000 [EMAIL PROTECTED] wrote: I am getting this error when I am trying to access my web site from computers that are not running under my name. This my url in flex: http://servername/web http://servername/web directory/subfolder/asppage.asp In the browser I am using the following: http://servername/web http://servername/web directory/startpage.html Works for me from different computers but not for other users. Can someone help, please?
[flexcoders] Re: HTTP request error
HTTP request error in a small alert box. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: What error? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Friday, November 14, 2008 4:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTTP request error Nobody has run into this problem? I have googled this error, did not find anything that helped. Please help. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , markgoldin_2000 markgoldin_2000@ wrote: I am getting this error when I am trying to access my web site from computers that are not running under my name. This my url in flex: http://servername/web http://servername/web directory/subfolder/asppage.asp In the browser I am using the following: http://servername/web http://servername/web directory/startpage.html Works for me from different computers but not for other users. Can someone help, please?
[flexcoders] Re: HTTP request error
So what is the code to produce this error? There are many places you can use a URI in Flex. --- In flexcoders@yahoogroups.com, markgoldin_2000 [EMAIL PROTECTED] wrote: HTTP request error in a small alert box. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: What error? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Friday, November 14, 2008 4:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTTP request error Nobody has run into this problem? I have googled this error, did not find anything that helped. Please help. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , markgoldin_2000 markgoldin_2000@ wrote: I am getting this error when I am trying to access my web site from computers that are not running under my name. This my url in flex: http://servername/web http://servername/web directory/subfolder/asppage.asp In the browser I am using the following: http://servername/web http://servername/web directory/startpage.html Works for me from different computers but not for other users. Can someone help, please?
[flexcoders] Re: HTTP request error
When I am setting up HTTPService I am using a string I have showed below: http://servername/web directory/subfolder/asppage.asp with a few parameters. And then from Browser: http://servername/web directory/startpage.html --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: So what is the code to produce this error? There are many places you can use a URI in Flex. --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote: HTTP request error in a small alert box. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: What error? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Friday, November 14, 2008 4:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTTP request error Nobody has run into this problem? I have googled this error, did not find anything that helped. Please help. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , markgoldin_2000 markgoldin_2000@ wrote: I am getting this error when I am trying to access my web site from computers that are not running under my name. This my url in flex: http://servername/web http://servername/web directory/subfolder/asppage.asp In the browser I am using the following: http://servername/web http://servername/web directory/startpage.html Works for me from different computers but not for other users. Can someone help, please?
[flexcoders] Re: HTTP request error
Ok, I have run more tests. I have found out that if I add a user that I use for testing to a local admin of my test box then it works. Not like this is a solution but at least now I know where the problem is. Any ideas I can use to have my test box serving other then me only users? --- In flexcoders@yahoogroups.com, markgoldin_2000 [EMAIL PROTECTED] wrote: When I am setting up HTTPService I am using a string I have showed below: http://servername/web directory/subfolder/asppage.asp with a few parameters. And then from Browser: http://servername/web directory/startpage.html --- In flexcoders@yahoogroups.com, valdhor stevedepp@ wrote: So what is the code to produce this error? There are many places you can use a URI in Flex. --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote: HTTP request error in a small alert box. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: What error? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Friday, November 14, 2008 4:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTTP request error Nobody has run into this problem? I have googled this error, did not find anything that helped. Please help. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , markgoldin_2000 markgoldin_2000@ wrote: I am getting this error when I am trying to access my web site from computers that are not running under my name. This my url in flex: http://servername/web http://servername/web directory/subfolder/asppage.asp In the browser I am using the following: http://servername/web http://servername/web directory/startpage.html Works for me from different computers but not for other users. Can someone help, please?
Re: [flexcoders] Re: HTTP Request Error: Design View in Flex Builder 3?
On Wednesday 09 Jul 2008, cox.blair wrote: I've noticed over the past two days, that files with the Flex Navigator will disappear. I'll have module open and it will only exist FB as an open file, the original file in the Navigator has been removed? Is the workspace on a network drive or something ? Do you have on-access virus scaning running ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: HTTP Request Error: Design View in Flex Builder 3?
I think I know what is causing the problem. the bin folders are missing? They show up in Flex Navigator, however when I look at the path information, they do not exist in any of the possible locations listed. I've noticed over the past two days, that files with the Flex Navigator will disappear. I'll have module open and it will only exist FB as an open file, the original file in the Navigator has been removed? I'm test driving the trial version on a Mac - is this normal behaviour? How do I correct this? Thanks,
[flexcoders] Re: HTTP Request Error and long strings
Tracy, Your last suggestion did the trick. I was able to send my large string using by sending the data in the body, not the url. For the list, here is the fix to my problem. Tracy writes: I believe that when the message body is empty, Flex always uses GET. And when you put your data on the url, you are using the querystring and not the body. Instead. use the naked url, and in AS, do: var oRequest:Object = new Object(); oRequest.data = { ...large JSON data sring ...} JSONSaveCollection.send(oRequest); // call to the HTTPService --- Thanks again Tracy... :D Michael --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Change the method to POST. GET has a limit, but I have used POST for quite large data streams. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of michael.ritchie Sent: Thursday, January 25, 2007 3:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTP Request Error and long strings There seems to be a size limit the value you set on the url propery for a Flex HTTPService call, around 12000 characters (12KB?). Could there be maxrequestlength setting in a config file for Flex 2 some place that we can adjust the limit? When we send a JSON string on with the HTTP service that is over 12000 characters we receive the following error message: Error: [RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: [...12716 character string...] We tested this on both IE 7 and Firefox. I don't think this is a browser post limit as we have other non-Flex applications that post that many characters. Michael Ritchie AOL Xdrive