All4172 Posted December 17, 2006 Share Posted December 17, 2006 How would I go about feeding a cookie to a website?For instance, in a closed source PERL program, it expects the following cookie:Name: UsernameContent: All4172Domain: mydomain.comPath: /Send For: Anytype of connectionExpire: Wed ect...Name: passwordHashContent: passwordstuffDomain: mydomain.comPath: /Send For: Anytype of connectionExpire: Wed ect...How would I hard those two above cookies in a php script in order for it to pass it to the program in order to auto log in? Link to comment https://forums.phpfreaks.com/topic/30947-php-cookiesquestion/ Share on other sites More sharing options...
artacus Posted December 17, 2006 Share Posted December 17, 2006 Is it on your domain? If so you can just set the cookie and it will be readable from your perl script as well. If its for another domain, you'll need to use curl. Link to comment https://forums.phpfreaks.com/topic/30947-php-cookiesquestion/#findComment-142833 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.