Jump to content

POST on CROSSDOMAIN with cURL


chinoknot

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.