Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UserAgent 文字列にsfTestFunctional一致するメソッドが見つかりませんでした。sfBrowserphp-cli 経由なので無理かも?
sfTestFunctional
sfBrowser
$browser->setHttpHeader('User-Agent', 'some custom string')->get('your url') これにより、次のリクエストのユーザー エージェントが設定されるため、すべてのリクエストで HTTP ヘッダーを提供するように sfBrowser オブジェクトを拡張することをお勧めします。
$browser->setHttpHeader('User-Agent', 'some custom string')->get('your url')