Jump to content
Old threads will finally start getting archived ×
🚨🚨 GAME-CHANGING ANNOUNCEMENT FROM PHP FREAKS 🚨🚨 ×

Recommended Posts

I am using cURL to send some POST data from my PHP script into my PERL YaBB forum.

 

The trouble is, when the POST data goes to the forum, the forum appears on the screen (CURL FOLLOW ME SET) but the forum shows as the user is logged out even though they are logged in with cookie set.

 

The URL shown in the address bar is also the URL of the PHP script and not the forums form recieving URL.  Any clickable buttons on the forum are also showing the PHP URL instead.

 

How do I send the POST data and redirect to the correct URL too??

 

Pointers greatly recieved!

Link to comment
https://forums.phpfreaks.com/topic/151801-curl-and-post-problems/
Share on other sites

I think the reason I have problems is because the forum sees the request coming in as from a new user (different computer [the server] with no cookie).

 

So, is there a way to tell cURL to use the local users cookie rather than trying to use the servers one?

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.