in reply to Posting on a site using mechanize

What is the problem?

Use a full browser and find out :) Use http://WireShark.org or LiveHTTPHeaders to figure out what works from the browser and send something like that using Mechanize ( you can automate this using HTTP::Recorder, Web Testing with HTTP::Recorder ) ,... or use WWW::Mechanize::Firefox, it drives firefox underneath

Replies are listed 'Best First'.
Re^2: Posting on a site using mechanize
by cesapun (Acolyte) on Aug 15, 2012 at 11:24 UTC

    Hmmm....this means that's something wrong with my code?

    I'm fairly new to perl language.:)

      Hmmm....this means that's something wrong with my code?

      Kinda.

      You're talking to a space-alien (random website), and those are usually tested using browser like firefox...

      so if it works with firefox, all you have to do is get your program to talk using the same accent and everything (http headers...)

      Unless you have an error message to report :)

        No,i don't get any error message.Everything seems to be ok,but when i look to that site,nothing appears.

        Btw,that site is mine.

        With that code,i don't get any error message.Everythig seems to be ok,but when i look to that site,nothing appears.