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

cURL and You are not authorized to perform this action

Development and Programming

funnEE's avatar
funnEE
94 posts
14 years ago
funnEE's avatar funnEE

Hi Support, I am trying to use cURL to forward a post to index.php for member registration. I get the error You are not authorized to perform this action. I have the same XID_hash in exp_security_hashes as the one I am passing in via CURLOPT_POSTFIELDS. The XID hidden field I am hard coding in the form looks like this.

<input type="hidden" name="XID" value="{XID_HASH}" />

When I turn off Secure Form Mode, the registration works. Obviously, I want to have secure form mode on. I am submitting the form to itself and processing the post via php and calling cURL. What else can I do to make this work with secure mode on? Thanks, Dave

       
John Henry Donovan's avatar
John Henry Donovan
12,339 posts
14 years ago
John Henry Donovan's avatar John Henry Donovan

Dave,

I am moving this post over to the development forum for you as its more appropriate there

I did find two relevant threads though which may help here and here

       
funnEE's avatar
funnEE
94 posts
14 years ago
funnEE's avatar funnEE

Thank you

       

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.