We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

3rd party callback to custom module only returns homepage

Development and Programming

David Hyland's avatar
David Hyland
210 posts
14 years ago
David Hyland's avatar David Hyland

I’m having problems getting a callback from another server to work correctly. I’ve created a method in a custom module which has an action ID attributed to it so the third party callback is posting data to http://mydomain.com/?ACT=76

The problem is that when the 3rd party posts to this URL the only response they get back is the site’s homepage. Yet when the URL is visited in a browser the correct response from the method is returned. Also with a test form post to the URL the correct response is returned.

Before I start pointing the finger at them and their request construction is there anything in the EE core that would ignore an ACT=xx coming from another server and only return the homepage? Is it expecting the request in a particular format? Is there any other information that would be useful?

Any help will be greatly appreciated.

David

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
14 years ago
Mark Bowen's avatar Mark Bowen

Hi David,

You mentioned a 3rd party trying to post to the URL. I totally hear you that you don’t want to point fingers until you know you can 😉 but I’m just wondering if you can post to the URL yourself in the same way that they are doing and does it work?

Might be the quickest way to see if it is just them or not?

If you can test yourself and let me know what happens that would be great. I don’t know enough about Modules myself to answer this one directly but if after testing it yourself you are still having problems then I can ask the rest of the team if there are any problems in doing that. If there isn’t an inherent problem with ExpressionEngine then it may well be that we would need to move this post to the Development & Programming forum in order for you to post your code and hopefully get some help from the community.

Is that all okay?

Thanks.

Mark

       
David Hyland's avatar
David Hyland
210 posts
14 years ago
David Hyland's avatar David Hyland

Hi mark

Yes indeed I have tried posting to it with a simple form and it responds correctly. The 3rd party is posting the data from their server not from the browser so I guess it’s possible that the http headers are different?

For the time being I’ve got around the problem by refactoring the module code into a PHP enabled template and it all works just fine. So it’s something in the EE core with an ACT parameter that the system doesn’t like as it just returns the homepage.

I’ve already tried adding in the & and ? into teh allowed querystring characters in the config file and also tried changing the uri protocol.

Cheers!

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
14 years ago
Mark Bowen's avatar Mark Bowen

Hi David,

I’ve asked for some confirmation on this from the rest of the team as I don’t have any experience with creating Modules so wouldn’t know why this is happening.

As soon as I hear back from them I will update this thread.

Thanks.

Mark

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
14 years ago
Mark Bowen's avatar Mark Bowen

Hi David,

I’ve spoken with other members of the support team here and as what you are doing involves a 3rd party then we would need you to take this up with them directly first.

If you or they then find a specific bug in ExpressionEngine which is causing this problem it is then that we would become involved.

Until then I’m afraid it remains a 3rd party issue as such.

I will move this over to the Development & Programming forum for you in the meantime though to hopefully get other users views on this.

If in the meantime you do find anything in ExpressionEngine that would be causing this then please do let us know and we can move this thread back to a more appropriate time as it arises.

Thanks.

Mark

       
David Hyland's avatar
David Hyland
210 posts
14 years ago
David Hyland's avatar David Hyland

Hi Mark

Many thanks for your input on this. I’m not suggesting that there’s a bug in EE but just asking if there’s anything specific about the type of http headers or post data that it’s expecting for such a query.

If there is then I should be able to help the 3rd party change the way they’re posting the data in order for it to be accepted by EE.

Thanks

David

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
14 years ago
Mark Bowen's avatar Mark Bowen

Hi David,

Hi Mark Many thanks for your input on this. I’m not suggesting that there’s a bug in EE but just asking if there’s anything specific about the type of http headers or post data that it’s expecting for such a query.

I’m afraid I’m not that up on this sort of thing so hopefully other users will be able to help out with this now that it’s in the Development forums.

Thanks,

Mark

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.