Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Ignoring the "!pu`" and ignoring the missing blank lines in both outputs, the differences are:

script: Connection: keep-alive
brower: [nothing]
This shouldn't matter.

script: Content-Length: 336
browser: Content-Length: 384
You're not sending the same data. That could definitely cause this problem.

script: Cookie: JSESSIONID=1545454aae552555a48773717374620
browser: Cookie: JSESSIONID=9989887adf879da987982jkd11
Differences are to be expected here, but there's no way to tell if the session is still valid. If the session is no longer valid, it could explain your problem. The difference in length of the session ids is odd, but not necessarily meaningful.

script: Cookie2: $Version="1"
brower: [nothing]
This shouldn't matter.

script: [nothing]
browser: Referer: http://somejunk.js.jps.com:8888/ditor/ditctl.do?stuff=stuff
This is could be important. Add this header to the script's request.

There are differences in the order of the headers, but that shouldn't matter.

You might have an easier time using WWW::Mechanize. It should handle just about everything for you. There are two downsides: 1) You have to install it, and 2) it won't help if the page requires JavaScript to submit.


In reply to Re: Submit from browser works but LWP does not by ikegami
in thread Submit from browser works but LWP does not by Plankton

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-16 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found