473,394 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Max parameter length send to the server

82
Hi,

I am using PHP on the server side and javascript on the client side. I ecounter a problem when I try to send to the server parameter with value of 350 charecter and more.
I know that I can split the string I send, and send it saperatly to the server and then reassemble it on the server. My question is how can I transfer to the server string with 350 char and more in native manner. For example if I try to transfer:
[HTML]
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/IkpuAQIdoD4&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/IkpuAQIdoD4&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>[/HTML]

The string trancated.

Any suggestions?
May 4 '08 #1
9 2791
hsriat
1,654 Expert 1GB
How are you sending your parameter to the server?
May 4 '08 #2
raknin
82
I sending the data through ajax call
May 4 '08 #3
hsriat
1,654 Expert 1GB
I couldn't understand the question well, but as far as I understand it, I think you need to use post method in Ajax, while you are using get method.
May 4 '08 #4
raknin
82
I couldn't understand the question well, but as far as I understand it, I think you need to use post method in Ajax, while you are using get method.
the problem is simple if you pass to the server parmeter with a value that is great than N charecter only part of the string is deliver to the server,and the other part is lost. It is happen on IE6 I did try it yet on Firefox.
May 4 '08 #5
hsriat
1,654 Expert 1GB
the problem is simple if you pass to the server parmeter with a value that is great than N charecter only part of the string is deliver to the server,and the other part is lost. It is happen on IE6 I did try it yet on Firefox.
Did you try using post method?
May 4 '08 #6
raknin
82
I got the sameresult with post and get
May 4 '08 #7
hsriat
1,654 Expert 1GB
Post your code ......
May 5 '08 #8
raknin
82
Thanks for your help,

I solved the problem.The problemwas that in the parameter that was passed tothe server was number of & that cause the string to be truncated. The solution was to replace the & with well known string and then on the server side treplace this string again.
May 5 '08 #9
hsriat
1,654 Expert 1GB
Thanks for your help,

I solved the problem.The problemwas that in the parameter that was passed tothe server was number of & that cause the string to be truncated. The solution was to replace the & with well known string and then on the server side treplace this string again.
Instead of just replacing the &, always apply encodeURICompoment() to the string you are sending to the server with Ajax.
May 5 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: PerryG | last post by:
We have a .NET 1.1 client which is sending a gzipped soap request using HttpWebRequest to an Apache server. The Apache server is using a the 'mod_deflate' server to decompress the incoming...
0
by: Dino Hadzic | last post by:
Hallo csharp'ers I am trying to call a function on a COM (dll) object from managed c# code, which will send data to another node using an already existing bluetooth connection. However, I get a...
5
by: Philippe Bertrand | last post by:
Using C#, I want to send a byte array to an unmanaged function with the minimum amount of copies. The array is input only and won't be modified (its copied on the unmanaged side). I'm currently...
1
by: Hozi | last post by:
I am getting the below error when asp.net tries to parse the .aspx file. The funny part is that the error only seems to be happening when viewing the page throuh IE 6 and not Netscape browsers. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.