ntesla123 Posted March 5, 2011 Share Posted March 5, 2011 I'm trying to post to a (SMF) simplemachines 2.0 forum using curl. I have logged in and I have tried sending all the fields, but when I try to post, I receive this message: "The following error or errors occurred while posting this message: Your session timed out while posting. Please try to re-submit your message." Do any of you know why this happens? Is the problem that when I visit the posting url, they give me a cookie that expires if I leave the posting url? I don't think the form is invalid, it looks like it has to do with the session. People at the simplemachines forum can have this problem when they try to post the ordinary way, but that is because of an inactivity period. Can my problem be because of a cookie? Quote Link to comment https://forums.phpfreaks.com/topic/229681-curl-your-session-timed-out-while-posting/ Share on other sites More sharing options...
.josh Posted March 5, 2011 Share Posted March 5, 2011 yes you probably aren't handling cookies correctly, setting a cookie jar file etc... but as always, it is hard to help when you don't post code. Quote Link to comment https://forums.phpfreaks.com/topic/229681-curl-your-session-timed-out-while-posting/#findComment-1183274 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.