473,387 Members | 1,420 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,387 software developers and data experts.

Parsing http head request resposnse from server.

Hi,

I have written an Ajax application which can send http HEAD requests
and receive the header response from server.
Now I want to show the different values in formatted manner. However,
there seems be no character or expression which I can use to split the
HEAD response for string processing.

Here is a sample of server response:

Mime-Version: 1.0 Date: Thu, 08 Feb 2007 03:51:13 GMT Server: Apache/
2.0.1a Content-Type: text/html; charset=utf-8 Content-Length: 69
Connection: close

If you have any information regarding this please do let me know.

Regards,
Raaga

Feb 8 '07 #1
1 2161
On Feb 7, 11:06 pm, "Raaga" <amitrai2...@gmail.comwrote:
Hi,

I have written an Ajax application which can send http HEAD requests
and receive the header response from server.
Now I want to show the different values in formatted manner. However,
there seems be no character or expression which I can use to split the
HEAD response for string processing.

Here is a sample of server response:

Mime-Version: 1.0 Date: Thu, 08 Feb 2007 03:51:13 GMT Server: Apache/
2.0.1a Content-Type: text/html; charset=utf-8 Content-Length: 69
Connection: close

If you have any information regarding this please do let me know.

Regards,
Raaga
Try to write out the charCodes of all the characters peresent in the
string you get from server, to see if there were any unprintable
char's, you may see char 13 or 10's in there

var resp//
var i=0
for(i=0;i<resp.length;i++)
{
document.write(resp.charAt(i)+" ----------"+resp.charCodeAt(i)
+"<br>")
}

let me know what you see
Jas

Feb 8 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: turnit \(removethis\) | last post by:
I have a login form that uses the post method to carry the information to the next page. The form works just fine in ie6.0, but fails in mozilla and fails in ie5.2 on a mac. "HTTP/1.1 400 Bad...
7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
0
by: milesd | last post by:
Hi, Rather new to MSXML4. I am parsing an XML data-stream over HTTP, and would like to know why I cannot parse XML nodes with multiple parameters. The XML and Code are below, BUT I would like...
1
by: Agoston Bejo | last post by:
Hello, I have to write some asp pages that react to HEAD and GET requests. The scenario is this: This is going to be a WAP site. When someone goes to the main page, it is redirected to a payment...
2
by: Robert | last post by:
I'm new to XML. I need to have my asp.net page accept an XML document sent via HTTP (from a Java app), process some info and send back a response as XML. I continue to get back an error on my...
0
by: WIWA | last post by:
Hi, I want to login to a password protected website and fetch the content of the page behind. I have based my code on http://weblogs.asp.net/jdennany/archive/2005/04/23/403971.aspx. When I use...
6
by: P James | last post by:
Hi, My project has been running for 4 years in ASP/IIS (originally on NT4, then on Win2003 as of 1 year ago), using the following code to parse the request object using the XML DOM: Set...
2
by: csci1000 | last post by:
Hi All, I am ASP beginner and seeking some help please. I am using online tutorial to learn. However been having this problem last 2 days. If I get any help, would be greatly appreciated to...
8
by: =?Utf-8?B?TTFpUw==?= | last post by:
I’m trying to parse out Amazon S3 server logs which are space delimited. However date fields are in the following form: When I try to use the following code to split the record on the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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...
0
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,...

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.