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

Re: Need slow web client

by daxim (Chaplain)
on Mar 21, 2013 at 09:48 UTC ( #1024696=note: print w/replies, xml ) Need Help??


in reply to Need slow web client

1. LWP::UserAgent with :content_cb and put a sleep in there or something.

2. HTTP::Proxy::BodyFilter::simple and put a sleep in there or something. This is going to be useful for testing other aspects of your proxy, too, as you can tamper with many more aspects of the HTTP request/response pair.

edit: added LWP

Replies are listed 'Best First'.
Re^2: Need slow web client
by McA (Priest) on Mar 21, 2013 at 10:39 UTC

    Thank you. I'll have a look at these.

    McA

      Note that HTTP::Proxy doesn't "do" https (yet).


      Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1024696]
help
Chatterbox?
[Corion]: ... I'm treating the incoming value sets as bags... Maybe I'll just put the burden on the user, at least in the first attempt at a full API. generate( headers => [{ 'Content-Type' => 'text/plain' }, {'Content-Type' => 'text/json' ] ), even ...
[Corion]: ... if that is cumbersome for the caller to specify. On the other hand, maybe there isn't that big a need for permuting the header values

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2017-01-17 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (152 votes). Check out past polls.