PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1848
Number of posts: 5016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Setting a cookie in the header of a request Posted by legacye on 1 Feb 2009 at 3:37 AM
I'm working on an ecommerce site and here's what I'm trying to do:

1. Set the value of a cookie in the header of a request to open a file from another domain. This could be done using fsockopen, a HTTP request, SoapClient or XMLReader but not cURL. Does anyone have any ideas how I could achieve this?.

2. The file I am accessing creates a cookie itself, but only if it doesn't already exist. The purpose of passing the cookie value in step 1 is so that this cookie and it's value will already appear present and so the response will contain either
(a) the value of the cookie passed in step 1 OR
(b) the value of the cookie just generated by step 2

I'm pretty stuck and any help on this today would be very very much appreciated.

Thanks a lot!



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.