On Thu, 23 Oct 2003, Abhishek jain wrote:
[...]
> I am a B.Tech student and as a part of college project I have to make a
> program that is able to send sms using www.sms.ac website.I tried to
> make the project myself but I am having some cookies problem. The site
> is not accepting the cookies generated by mine LWP pogram. I am sending
[...]

1. Forget about CGI until you've got the thing working on the command line
(or in your IDE, or whatever)

2. Have you actually checked what cookies are getting set and returned?
Turn on HTTP::Cookie's debugging (IIRC, you have to ask LWP's centralised
debug logging facility to do that), and it should tell you exactly what
the server is sending, why it doesn't like any rejected cookies, and why
it's not returning any cookies whose domain matches the site you're
talking to.  A sniffer like ethereal will also likely be useful, to see
exactly what's going on (try sniffing both a browser and your program, and
compare the two).

HTH


John

Reply via email to