LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-30-2007, 01:44 AM   #1
simon_qwl
Member
 
Registered: Jul 2004
Posts: 34

Rep: Reputation: 15
AJAX and boa issue


Hi all,
recently i am studying on AJAX. According my understanding, AJAX focus on client side by javascript,css then it supposed to work with whatever language on server side. therefore, i intend to integrate AJAX with cgi program on a boa server. however, when the object of XMLHttpRequest() sends data to server, a error message "400 Bad Request" is given and "Unknow Content-Length Post" error message on server side.
anyone encountered this problem before?is this problem caused by my misunderstand or boa server?

thanks for any advices!
 
Old 03-31-2007, 01:43 PM   #2
simon_qwl
Member
 
Registered: Jul 2004
Posts: 34

Original Poster
Rep: Reputation: 15
I tried to send data back to server in another way:

Code:
 var query="/cgi-bin/ajaxtest";
 query=query+"?message="+str;
 xmlHttp.open("get",query,true);
 xmlHttp.send(null);
the cgi program can receive data from CONTENT_LENGTH environment variable but the last character is missed. so far, this is the only way i tried that the cgi program can receive data from javascript.any idea?

Last edited by simon_qwl; 03-31-2007 at 01:47 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Eclipse Ajax Toolkit Framework and Ajax tools LXer Syndicated Linux News 0 05-12-2006 12:21 PM
LXer: Mastering Ajax, Part 3: Advanced requests and responses in Ajax LXer Syndicated Linux News 0 02-16-2006 06:46 AM
Boa startup error arpanet1969 Linux - Software 0 09-11-2005 05:27 PM
BOA users or developers can help me? gaddargarson Programming 1 08-28-2005 04:08 AM
help on boa webserver blackzone Linux - Networking 5 10-27-2004 10:32 PM


All times are GMT -5. The time now is 09:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration