chinoknot Posted December 10, 2015 Share Posted December 10, 2015 Hello,I'm trying to do a post with a crossdomain using PHP. The first solution I found was using Ajax, that it works great, but the other site won't accept the ajax calls. So they told to use other ways.Unfortunately I'm using PHP 5.2.5 and the only useful extension for doing a post is cURL I think (I can't install other modules or extensions). I must pass 3 parameters with a custom header with X-Wsse for the security and for this I have a function which creates the token, than I put this token in the header with the curl_setopt($ch, CURLOPT_HTTPHEADER, [...]), but probably doesn't work. At least I'm think doesn't work, because in the console of Firefox I can't see the parameters I pass.So I need suggestions.I create also a fake php page for a response. In the attachment my 2 pages.Thanks in advance. Curl.zip Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted December 11, 2015 Share Posted December 11, 2015 My mommy always told me "don't accept zip's from strangers" Seriously though, post up your code (inside code tags!) and you will get a much better response. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.