Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: LWP UserAgent and Simple keeping headers in content

by fx (Pilgrim)
on Nov 30, 2010 at 00:38 UTC ( [id://874403]=note: print w/replies, xml ) Need Help??


in reply to Re: LWP UserAgent and Simple keeping headers in content
in thread LWP UserAgent and Simple keeping headers in content

Ah....potentially more info from me now!

Just tried a simple command line "get" and "getstore" and it all works ok. Just re-examined my code and I'm actually calling my "get" or "getstore" from within a thread.

Now I know threads can cause issues, but is this connected somehow? The "get" is just about working...but not quite completely working. The program isn't completely crashing out or anything...it's just not doing exactly what I think it should.

Could there be any specific reason why running a UserAgent "get" inside a thread causes it to store slightly different data compared to calling when not threading?....

fx, Infinity is Colourless

  • Comment on Re^2: LWP UserAgent and Simple keeping headers in content

Replies are listed 'Best First'.
Re^3: LWP UserAgent and Simple keeping headers in content
by ikegami (Patriarch) on Nov 30, 2010 at 02:05 UTC
    Don't make me guess; provide code to produce.

      I can't just paste the entire thing as there's some sensitive stuff in there. However, I am trying to work on reproducing the error with some basic code....

      HOWEVER....that's not exactly working out for me as I can't reproduce it yet! Dammit :(

      I'll paste the code when/if I get it to fail again...

      fx, Infinity is Colourless

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://874403]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 16:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found