FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General Coding/Development
User Name
Password  Lost PW

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 05-01-2012, 05:07 PM   Postid: 181348
m1k3ry4n
Registered User

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Dec 2010
Location: Ithaca, NY
Posts: 14
xmlhttprequest POST from subdomain 405 error

I'm using OpenLayers to send a POST request to a PHP script within my subdomain and I get the http error 405 Method Not Allowed.

I'm using OpenLayer's Request namespace to do this.

When I create Request namespace it looks something like:

OpenLayers.Request.POST({
url:"/sites/default/files/scripts/print/print.php",
data:OpenLayers.Util.getParameterString({
width:size.w,
height:size.h
}),
headers:{'Content-Type':'application/x-www-form-urlencoded'},
callback: processResults
});

On my local Ubuntu machine within Drupal, it works fine. Now that I'm up on the FQ server, on a subdomain and in Drupal, I'm getting this error. (The main www is also a Drupal installation. This Drupal installation resides in www/example.)

I'm guessing that the subdomain/Drupal is the crux of the problem, and there might be a magic setting somewhere within FQ that I don't know about that would solve this.

Anyone have any ideas?

m1k3ry4n is offline   Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 10:26 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.