:evil:
Hi all,
I have written Symbian application thath makes a connection to one WAP Gateway and gets wml page.
This is most important part of source code :
////////////////////////////////////////////////////////////////////////////////////
LIT8(RemoteHost,"203.170.229.34" ; //wap gateway
_LIT(URI, "http://www.yourserver.com/yourcontent.wml";
_LIT8(Headers, "";
_LIT8(Body, "";
_LIT8(ClientHeaders, "";
iWapServ = new RWAPServ();
iWspConn = new RWSPCOConn();
iWspTrans = new RWSPCOTrans();
iCap = CCapCodec::NewL();
iCap->SetServerSDUSize(150000);
iCap->SetClientSDUSize(150000);
iWapServ->Connect();
RWAPConn::TPort RemotePort = 9201;
RWAPConn::TPort LocalPort = 0;
TBearer Bearer = EIP;
TBool SecureConn = EFalse;
iErr = iWspConn->Open(*iWapServ, RemoteHost, RemotePort, LocalPort, Bearer, SecureConn);
iErr = iWspConn->Connect(ClientHeaders, iCap);
RWAPConn::TMethod Method = RWAPConn::EGet;
iErr = iWspConn->CreateTransaction(Method, URI, Headers, Body, *iWspTrans);
HBufC8* iBuffer;
iBuffer = HBufC8::NewL(200);
TPtr8 p = iBuffer->Des();
iErr = iWspTrans->GetData(p, RWSPCOTrans::EResultBody);
////////////////////////////////////////////////////////////////////////////////////
The problem is thath it is works with Nokia Active Server ( Nokia WAP Gateway ) and Wind ( Italian Provider ) WAP GW, but not with TIM / Omnitel (others italian provider) WAP GW.
Which would be able be the differences ?
Tanks
Luigi