Showing posts with label Internet. Show all posts
Showing posts with label Internet. Show all posts

Wednesday, June 27, 2012

SingTel, Starhub, M1 APN Settings

SingTel

  • APN: e-ideas
    • Username: 65ideas
    • Password: 65ideas
  • APN: internet
    • Username: LEAVE_BLANK
    • Password: LEAVE_BLANK

Singtel(HiCard Prepaid)
  • APN: hicard
    • Username: 65
    • Password: 65ideas

Starhub

  • APN: shwapint
    • Username: LEAVE_BLANK
    • Password: LEAVE_BLANK
  • APN: shwap
    • Username: LEAVE_BLANK
    • Password: LEAVE_BLANK

Starhub (MaxMobile Prepaid)
  • APN: shppd
    • Username: LEAVE_BLANK
    • Password: LEAVE_BLANK

M1

  • APN: sunsurf
    • Username: 65
    • Password: user123

M1 (M Card Prepaid)
  • APN: miworldmcard
    • Username: 65
    • Password: user123


Number to dial : *99#

Tuesday, August 24, 2010

WinMobile - How to retrieve a web page

Windows Mobile, C#

The following function is for retrieving a web page from given URL.

bool RetrieveWebPage(String strUrl, ref String strReturn)
{
bool results = true;

try
{
HttpWebRequest request = (HttpWebRequest)System.Net.WebRequest.Create(strUrl);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream receiveStream = response.GetResponseStream();
StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);
StringBuilder strbuilder = new StringBuilder();

while (readStream.EndOfStream == false)
{
strbuilder.Append(readStream.ReadLine());
}
response.Close();
readStream.Close();
strReturn = strbuilder.ToString();
}
catch (Exception e)
{
strReturn = "";
results = false;
}

return results;
}