Wrox Programmer Forums
|
Ajax the combination of XHTML, CSS, DOM, XML, XSLT, XMLHttpRequest, and JavaScript
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ajax section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 11th, 2008, 02:50 PM
Authorized User
 
Join Date: Aug 2008
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Request to server

I'm using the standard connection mode. But I'm getting access denied from the server. The server is an external one, and I am using the xmlHttpRequest.
Is there a piece of code that I have to put on my server or on my client to make thinks work?
This is very important to me because I can't advance in my work and I don't know what to do.
Thank you.

 
Old September 11th, 2008, 05:05 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Some external servers (Google is a good example) require that you pass them an identifier (typically, a GUID) as "authentication" that you are authorized to get the data. With no valid authentication, you get nothing (or an error).

Others look at the browsers "HTTP_USER_AGENT" string and decide what to send back based on what browser the user has. If you don't give them a User Agent that they recognize, they give you back nothing (or an error).

Others (ASP and JSP based servers are good examples) are expecting a Cookie that identifies the particular user (e.g, sessionid in the case of ASP). If you don't give them a valid cookie, they give you back nothing (or an error).

So...

I don't know that we can help you without knowing more about the server from which you are trying to get the info.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Server was unable to process request tarduk2004 ASP.NET 2.0 Professional 1 December 12th, 2007 08:37 AM
How Request processing handled by server rajender536 C# 1 July 31st, 2006 11:53 PM
Server was unable to process request. Kross ASP.NET 1.0 and 1.1 Professional 1 January 8th, 2006 10:49 AM
Request and Response from server in XML snarreddi XML 3 December 24th, 2004 07:20 AM
Login request when I user server variables Blaise Classic ASP Basics 0 September 7th, 2003 08:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.