473,808 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Max parameter length send to the server

82 New Member
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"><p aram name="movie" value="http://www.youtube.com/v/IkpuAQIdoD4&hl= en"></param><param name="wmode" value="transpar ent"></param><embed src="http://www.youtube.com/v/IkpuAQIdoD4&hl= en" type="applicati on/x-shockwave-flash" wmode="transpar ent" width="425" height="355"></embed></object>[/HTML]

The string trancated.

Any suggestions?
May 4 '08 #1
9 2806
hsriat
1,654 Recognized Expert Top Contributor
How are you sending your parameter to the server?
May 4 '08 #2
raknin
82 New Member
I sending the data through ajax call
May 4 '08 #3
hsriat
1,654 Recognized Expert Top Contributor
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 New Member
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 Recognized Expert Top Contributor
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 New Member
I got the sameresult with post and get
May 4 '08 #7
hsriat
1,654 Recognized Expert Top Contributor
Post your code ......
May 5 '08 #8
raknin
82 New Member
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 Recognized Expert Top Contributor
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 encodeURICompom ent() 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
3522
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 message, and to also compress the response (GZIP). The mod_deflate filter requires the 'Content-Length' header contained within the incoming request to specify the number of UNCOMPRESSED bytes being sent and not the actual bytes of the body of the...
0
3742
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 "System.ArgumentException" with explanation "The parameter is incorrect" when calling L2C_SendData_Issue(...) The function declaration in C#: L2C_SendData_Issue(object vau8BDAddr, object vu16LCID, ref object
5
4794
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 using fixed byte *. My question is: Should I be using In byte parameter instead? Ref parameter? fixed( byte *b = byte_array ) { MyUnmangedFunc2( b, byte_array.Length ); }
1
9978
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 am not sure exactly what is throwing it off, especially in the form tag Has anybody seen this happening to them? It worked on IE briefly and then it started happening again. Any help would be greatly appreciated Here is the full source of the...
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10633
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10375
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10114
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3860
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.