… | |
… | |
120 | |
120 | |
121 | You really should provide your own "User-Agent:" header value |
121 | You really should provide your own "User-Agent:" header value |
122 | that is appropriate for your program - I wouldn't be surprised |
122 | that is appropriate for your program - I wouldn't be surprised |
123 | if the default AnyEvent string gets blocked by webservers sooner |
123 | if the default AnyEvent string gets blocked by webservers sooner |
124 | or later. |
124 | or later. |
|
|
125 | |
|
|
126 | Also, make sure that your headers names and values do not |
|
|
127 | contain any embedded newlines. |
125 | |
128 | |
126 | timeout => $seconds |
129 | timeout => $seconds |
127 | The time-out to use for various stages - each connect attempt |
130 | The time-out to use for various stages - each connect attempt |
128 | will reset the timeout, as will read or write activity, i.e. |
131 | will reset the timeout, as will read or write activity, i.e. |
129 | this is not an overall timeout. |
132 | this is not an overall timeout. |