Hi guys.

Need to manually configure 200 huawei onts through its http gui.

Each config involves login and 3 more clicks.

I would like to automatize this task creating some kind of http agent.

I did this in the past but now cpes have involved and now they request a token generated on browser side on each http transaction.

Question: Is there some recomended way to face this problem ? recomended tool? analisis method ?

Any other idea ? feedback?

Sorry:

I can not share any code since i have any yet.

I think I will start using mechanize with perl as soon as I know how to face token thing.

BTW:

I already tryed using ont cli but it have no all commands I need.

JUST TO BE CLEAR:

I dont whant to broke any system neither hack something. Just need to get rid of this click nightmare.

Regards,

Leandro.


In reply to Automate a http task (tokens included) by leostereo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.