(CNBC) — U.S. stocks rose on Wednesday as the technology sector climbed higher.

The S&P 500 gained 0.46 percent to close at 2,457.59, with information technology leading eight sectors higher. The S&P also posted a four-day winning streak, its longest since late May.

The tech-heavy Nasdaq composite rose 1.05 percent to 6,368.31, leading other major U.S. indexes, and notched a three-day winning streak. Lifting the index higher were shares of Netflix, which advanced more than 3 percent after analysts at Bernstein said that Disney pulling its content from the platform wouldn’t hinder Netflix’s stock performance.

Note: Read our discussion guidelines before commenting.