UPDATE: Two CBC journalists covering violent anti-government protests in Turkey were detained by police in Istanbul for several hours Wednesday before being released after Ottawa demanded they be freed.

The CBC said Wednesday evening Sasa Petricic and Derek Stoffel were "unharmed" and "in good condition" after their ordeal, which began just before noon.

Sasa Petricic and Derek Stoffel, reporters for CBC News, have been arrested in Turkey, the network confirmed Wednesday.

At 10:30 a.m. ET, Petricic, who has been covering recent unrest in Istanbul, tweeted out a single word: 'Arrested'

A couple of hours later, CBC confirmed the arrests with the following statement:

CBC reporters Sasa Petricic and Derek Stoffel have been detained by police in Turkey amid ongoing protests in the country. The CBC has been in contact with them, and they say they're OK.

The CBC said Wednesday afternoon that it had been in contact with the two reporters.

"We can confirm both journalists have been detained but are in good condition," said spokesman Chuck Thompson.

The public broadcaster followed that up with a tweet that suggested the reporters' release was imminent: "Turkey's ambassador to Canada, Tuncay Babali, says CBC's Sasa Petricic and Derek Stoffel 'are safe and expected to be released shortly.' "

The reporters appeared to have re-gained access to their phones about an hour after their arrests were confirmed and both tweeted about being detained.

After several hours of silence, Stoffel also managed to send a tweet out before losing his phone: "Sasa and I are ok. In police custody but ok. Thanks for kind words. Will lose mobile phones very quickly so good night."

"All good so far. Going through the Byzantine (literally) process! Thanks everyone," Petricic added.

Foreign Affairs Minister John Baird had contacted authorities in Istanbul earlier regarding the situation.

Early Wednesday afternoon, he tweeted, "Just got off the phone with the Turkish ambassador and expressed concern over reports of a CBC journalist detained in Istanbul."

Diane Ablonczy, minister of state for consular affairs, said the government was monitoring the situation closely.

"Canadian officials are in touch both with the CBC and have met with the two detained journalists,'' she said in the House of Commons.

"The Turkish ambassador has assured us that the two journalists are safe and well treated and we will continue to liaise at the highest levels until this matter is resolved.''

The House of Commons also unanimously approved a motion brought by Liberal MP Bob Rae which condemned the arrest and detention of the two reporters and called on Turkish authorities ``to release them immediately.''

A veteran reporter, Petricic may have been among several journalists rounded up, as police descend on Istanbul's Taksim Square, CJAD 800 is reporting.

Earlier in the day, Petricic tweeted from the public square — an epicenter of mass protests against the government of Prime Minister Recep Tayyip Erdogan — describing the aftermath of a "rough night of teargas & rain... but still hundreds of people staying."

Stoffel's last tweet before his arrest Wednesday was a photo of a tractor and plow clearing protesters' barricades in the square.

Turkey has experienced nearly two weeks of protests that began in Istanbul after a violent police crackdown on a peaceful sit-in by activists objecting to a development project.

The protests have since spread to dozens of other cities and are shaping up as the biggest test yet in the 10-year rule of Prime Minister Recep Tayyip Erdogan and his Islamic-rooted government.

The protesters say the prime minister is becoming increasingly authoritarian and is trying to force his deep religious views on all Turks. Erdogan insists the protests are being organized by extremists and terrorists and must end immediately.

Activists say 5,000 people have been injured or seriously affected by the tear gas and four people have died in the protests.

On Wednesday, thousands of Turkish lawyers took to the streets, sounding off on the alleged rough treatment of their colleagues by police.

More from The Canadian Press:

OTTAWA — Two CBC journalists covering violent anti-government protests in Turkey were detained by police in Istanbul for several hours Wednesday before being released after Ottawa demanded they be freed.

The CBC said Wednesday evening Sasa Petricic and Derek Stoffel were "unharmed" and "in good condition" after their ordeal, which began just before noon.

The pair had been tweeting photos and observations from around Turkey's largest city when the flow of information ended with a single tweet from Petricic's account.

"Arrested," he tweeted.

News of their release Wednesday evening also spread on Twitter, and was quickly confirmed by messages sent from Stoffel's account.

"My exclusive 'tour' of the Turkish justice system is over! Thanks for all the kind comments! And very big thanks to all at (at)CBCNews," one read.

Another tweet thanked Foreign Affairs officials for helping speed up the two journalists' release.

Foreign Affairs Minister John Baird tweeted earlier that he had contacted the Turkish ambassador and expressed concern about the incident.

Diane Ablonczy, minister of state for consular affairs, had also said the government was monitoring the situation closely.

"The Turkish ambassador has assured us that the two journalists are safe and well treated and we will continue to liaise at the highest levels until this matter is resolved," she said in the House of Commons.

The House of Commons also unanimously approved a motion brought by Liberal MP Bob Rae which condemned the arrest and detention of the two reporters and called on Turkish authorities "to release them immediately."

The reporters appeared to have re-gained access to their cellphones about an hour after their arrests were confirmed and both tweeted about being detained.

"Sasa and I are OK. In police custody but OK. Thanks for kind words. Will lose mobile phones very quickly so good night," Stoffel said on Twitter.

"All good so far. Going through the Byzantine (literally) process! Thanks everyone," Petricic added.

Turkey has experienced nearly two weeks of protests that began in Istanbul after a violent police crackdown on a peaceful sit-in by activists objecting to a development project.

The protests have since spread to dozens of other cities and are shaping up as the biggest test yet in the 10-year rule of Prime Minister Recep Tayyip Erdogan and his Islamic-rooted government.

The protesters say the prime minister is becoming increasingly authoritarian and is trying to force his deep religious views on all Turks. Erdogan insists the protests are being organized by extremists and terrorists and must end immediately.

Activists say 5,000 people have been injured or seriously affected by the tear gas and four people have died in the protests.

On Wednesday, thousands of Turkish lawyers took to the streets, sounding off on the alleged rough treatment of their colleagues by police.

Later in the day, the governing party said it was open to holding a referendum over the Istanbul development plan that has had a central role in the mass protests.

The announcement came after talks between Erdogan and a group of activists. It was the first big gesture by his government to end the civil unrest.

A spokesman for the ruling party also said, however, that the government would not allow an ongoing sit-in at a park which has been at the centre of the protests to continue "until doomsday."

With files from The Canadian Press

Related on HuffPost:

Loading Slideshow...
  • Turkish protesters clash with Turkish riot policemen on Taksim square in Istanbul on June 22, 2013. Turkish police used water cannon today to disperse thousands of demonstrators who had gathered anew in Istanbul's Taksim Square, calling for the resignation of Prime Minister Recep Tayyip Erdogan. (BULENT KILIC/AFP/Getty Images)

  • Protesters hold up their hands as they gather on Taksim square before clashes with Turkish riot police in Istanbul on June 22, 2013 during a wave of new protests. (BULENT KILIC/AFP/Getty Images)

  • Protesters hold up their hands as they gather on Taksim square before clashing with Turkish riot police in Istanbul on June 22, 2013. (BULENT KILIC/AFP/Getty Images)

  • A man bleeds from a head wound as Turkish police clash with anti-government protestors while they clear Taksim Square and push them down the Istikhlal shopping avenue on June 22, 2013 in Istanbul, Turkey. (Photo by Scott Peterson/Getty Images)

  • A man braces against a shield as Turkish police clash with anti-government protestors while they clear Taksim Square and push them down the Istikhlal shopping avenue on June 22, 2013 in Istanbul, Turkey. (Photo by Scott Peterson/Getty Images)

  • An anti goverment protestor waves a Turkish flag with a portrait of Mustafa Kemal Ataturk, founder of modern Turkey on Taksim square during the clash between riot Police and protestors in Istanbul on June 22, 2013. (OZAN KOSE/AFP/Getty Images)

  • Protesters raise their hands as they gather on Taksim square during the clash between riot police and protestors in Istanbul on June 22, 2013. (OZAN KOSE/AFP/Getty Images)

  • Cyclists ride bikes during the silent protest at Taksim Square on June 23, 2013 in Istanbul, Turkey. Performance artist Erdem Gunduz, nicknamed 'The Standing Man,' became a new symbol of the anti-government protests after a eight-hour vigil in Taksim Square. (Photo by Burak Kara/Getty Images)

  • Turkish anti-government protestors gather in Taksim Square carrying carnations to mark the four people killed in weeks of protest on June 22, 2013 in Istanbul, Turkey. (Photo by Scott Peterson/Getty Images)

  • Turkish anti-government protestors push back on a police car, carnations sitting to mark the four people killed in weeks of protest, as police move into clear Taksim Square in Istanbul, on June 22, 2013 in Istanbul, Turkey. (Photo by Scott Peterson/Getty Images)

  • Turkish anti-government protestors gather in Taksim Square carrying carnations to mark the four people killed in weeks of protest on June 22, 2013 in Istanbul, Turkey. (Photo by Scott Peterson/Getty Images)

  • Turkish riot police argue with anti-government protestors as they begin moving in to clear Taksim Square, on June 22, 2013 in Istanbul, Turkey. (Photo by Scott Peterson/Getty Images)

  • People stand during a silent protest at Taksim Square on June 23, 2013 in Istanbul, Turkey. Performance artist Erdem Gunduz, nicknamed 'The Standing Man,' became a new symbol of the anti-government protests after a eight-hour vigil in Taksim Square. (Photo by Burak Kara/Getty Images)

  • People stand during a silent protest at Taksim Square on June 23, 2013 in Istanbul, Turkey. Performance artist Erdem Gunduz, nicknamed 'The Standing Man,' became a new symbol of the anti-government protests after a eight-hour vigil in Taksim Square. (Photo by Burak Kara/Getty Images)

  • A protester reacts in pain to a salvo of tear gas fired by Turkish riot police officers to chase out demonstrators and to dismantle the tent camp set up by demonstrators in Gezi Park in Istanbul on June 15, 2013. (MARCO LONGARI/AFP/Getty Images)

  • People light candles for the victims of the protests at Taksim square, in Istanbul, early Saturday, June 15, 2013. (AP Photo/Vadim Ghirda)

  • Protesters try to resist the advance of riot police in Gezi park in Istanbul, Turkey, Saturday, June 15, 2013. (AP Photo/Vadim Ghirda)

  • A protester reacts as police throw tear gas among tents during an operation to evacuate the Gezi Park of Taksim Square in Istanbul, Saturday, June 15, 2013. (AP Photo/Thanassis Stavrakis)

  • Police enter to evacuate the Gezi Park in Istanbul, Saturday, June 15, 2013. (AP Photo/Thanassis Stavrakis)

  • Protesters try to resist the advance of riot police in Gezi park in Istanbul, Turkey, Saturday, June 15, 2013. (AP Photo/Vadim Ghirda)

  • People march from Anatolian side to European side to Taksim square in Istanbul, on June 16, 2013. (BULENT KILIC/AFP/Getty Images)

  • Protesters take cover from a water cannon during clashes with riot police at a demonstration in Ankara on June 16, 2013. (ADEM ALTAN/AFP/Getty Images)

  • A pretzel vendor walks in front of a line of Turkish police cordoning off Taksim Square, in Istanbul, Turkey, Sunday, June 16, 2013. (AP Photo/Vadim Ghirda)

  • A protester reacts as Turkish riot police spray water cannon at demonstrators who remained defiant after authorities evicted activists from an Istanbul park, making clear they are taking a hardline against attempts to rekindle protests that have shaken the country, in city's main Kizilay Square in Ankara, Turkey, Sunday, June 16, 2013. (AP Photo/Burhan Ozbilici)

  • As police vehicles rolled into Kizilay Square, one woman approached a lightly armored truck bearing the logo of the police anti-terrorism department and grabbed a side window to ask those inside: "What is this oppression? Have you no fear of God? I have no children, but all of these (demonstrators) are my children!" she said, motioning to the young protesters nearby, in Ankara, Turkey, Sunday, June 16, 2013. (AP Photo/Burhan Ozbilici)

  • A protester reacts as Turkish riot police spray water cannon at demonstrators who remained defiant after authorities evicted activists from an Istanbul park, making clear they are taking a hardline against attempts to rekindle protests that have shaken the country, in city's main Kizilay Square in Ankara, Turkey, Sunday, June 16, 2013. (AP Photo/Burhan Ozbilici)

  • In this Saturday, June 15, 2013, file photo, protesters try to resist the advance of riot police in Gezi park in Istanbul, Turkey. (AP Photo/Vadim Ghirda, File)

  • Turkish protesters hold a massive rally on John F. Kennedy street near the U.S. Embassy, shouting slogans such as "government, resign!" in Ankara, Turkey, early Sunday, June 16, 2013. (AP Photo/Burhan Ozbilici)

  • In this Tuesday, June 11, 2013, file photo, a protester tries to remain standing as a police water cannon fires water during clashes in Taksim square in Istanbul. (AP Photo/Kostas Tsironis, File)

  • In this Tuesday, June 11, 2013, file photo, a protester tries protect from water projected by a water canon from police during clashes in Taksim square in Istanbul. (AP Photo/Kostas Tsironis)

  • People carry the coffin of Ethem Sarisuluk, one of five people killed during the recent protests in Turkey, as Turkish riot police spray water cannon at demonstrators who remained defiant after authorities evicted activists from an Istanbul park, making clear they are taking a hardline against attempts to rekindle protests that have shaken the country, in city's main Kizilay Square in Ankara, Turkey, Sunday, June 16, 2013. (AP Photo )

  • Police fire tear gas as riot police spray water cannon at demonstrators who remained defiant after authorities evicted activists from an Istanbul park, making clear they are taking a hardline against attempts to rekindle protests that have shaken the country, near city's main Taksim Square in Istanbul, Turkey, Sunday, June 16, 2013.(AP Photo )

  • Anti-government protesters demonstrate in central Ankara on June 17, 2013. (ADEM ALTAN/AFP/Getty Images)

  • Anti-government protesters demonstrate in central Ankara on June 17, 2013. (ADEM ALTAN/AFP/Getty Images)

  • People walk during a rally by the labor unions in Istanbul, Turkey, Monday, June 17, 2013. (AP Photo)

  • People shout anti-government slogans during a rally by the labor unions in Istanbul, Turkey, Monday, June 17, 2013. (AP Photo)

  • Erdem Gunduz, right, stands silently on Taksim Square in Istanbul, Turkey, early Tuesday, June 18, 2013. (AP Photo)

  • A protester stands in a silent protest at Taksim Square in, Istanbul, Turkey, Tuesday, June 18, 2013. After weeks of sometimes-violent confrontation with police, Turkish protesters have found a new form of resistance: standing still and silent. (AP Photo/Petr David Josek)

  • Mert Solkiran, centre, stands in a silent protest at Taksim Square in, Istanbul, Turkey, Tuesday, June 18, 2013. After weeks of sometimes-violent confrontation with police, Turkish protesters have found a new form of resistance: standing still and silent. (AP Photo/Petr David Josek)

  • Erdem Gunduz, left, and dozens of people stand silently on Taksim Square in Istanbul, Turkey, early Tuesday, June 18, 2013. After weeks of confrontation with police, sometimes violent, Turkish protesters are using a new form of resistance: standing silently. The development started late Monday when a solitary man began standing in passive defiance against Prime Minister Recep Tayyip Erdogan's authority at Istanbul's central Taksim Square. The square has been sealed off from mass protests since police cleared it over the weekend. The man has identified himself as Erdem Gunduz, a performance artist. His act has sparked imitation by others in Istanbul and other cities. It has provoked widespread comment on social media. (AP Photo)

  • Protestors stand in a silent protest at Taksim Square in, Istanbul, Turkey, Tuesday, June 18, 2013. After weeks of sometimes-violent confrontation with police, Turkish protesters have found a new form of resistance: standing still and silent. (AP Photo/Petr David Josek)

  • A man sleeps at Taksim's Gezi Park early on June 12, 2013 in Istanbul, hours after riot police invated the square. (ANGELOS TZORTZINIS/AFP/Getty Images)

  • Demonstrators wait at the entrance of Taksim Gezi park on June 12, 2013. (GURCAN OZTURK/AFP/Getty Images)

  • Turkish lawyers march in support of anti-government protests in Ankara, on June 12, 2013. (AFP/Getty Images)

  • Demonstrators wait at the entrance of the Taksim Gezi park on June 12, 2013 after a night of running battles with riot police as Turkish Prime Minister moved to crush mass demos against his Islamic-rooted government. (GURCAN OZTURK/AFP/Getty Images)

  • Lawyers and members of the Turkish bar association shout slogans as they march in support of anti-government protests in Ankara, on June 12, 2013. (STRINGER/AFP/Getty Images)

  • Turkish lawyers march in support of anti-government protests in Ankara, on June 12, 2013. (AFP/Getty Images)

  • Riot police fire tear gas to disperse the crowd during a demonstration near Taksim Square on June 11, 2013 in Istanbul, Turkey. (Photo by Lam Yik Fei/Getty Images)

  • Protesters clash with riot police at Taksim square in Istanbul on June 11, 2013. (ARIS MESSINIS/AFP/Getty Images)

  • Riot police fire tear gas to disperse the crowd during a demonstration near Taksim Square on June 11, 2013 in Istanbul, Turkey. (Photo by Lam Yik Fei/Getty Images)

  • An injured person is helped by fellow protesters during clashes with police on Taksim square in Istanbul, on June 11, 2013. (BULENT KILIC/AFP/Getty Images)