Possible to force HTTP to go over wireless network / avoid going over wifi? | developer.brewmp.com Possible to force HTTP to go over wireless network / avoid going over wifi? | developer.brewmp.com

Developer

Possible to force HTTP to go over wireless network / avoid going over wifi?

Forums:

I have a requirement to reach a URL using HTTP, however the connection cannot go over Wifi, it must go over the WAN network. How can I achieve this?

you can force a HTTP request being sent using IWeb by specifying the WebOpts WEBOPT_NETWORK.

check data networks in AEENetTypes.h as AEE_NETWORK_XXX.
an eg of forced request to use a UMTS profile ID nProfile(int value):-

IWEB_GetResponse(pWeb->m_pIWeb,(pWeb->m_pIWeb, &pWeb->m_pIWebResp, &pWeb->m_CB, pWeb->pUrl,
WEBOPT_HANDLERDATA, pWeb,
WEBOPT_METHOD, "GET",

WEBOPT_NETWORK, AEE_NETWORK_UMTS(nProfile), 
WEBOPT_END));

you can force a HTTP request being sent using IWeb by specifying the WebOpts WEBOPT_NETWORK.

check data networks in AEENetTypes.h as AEE_NETWORK_XXX.
an eg of forced request to use a UMTS profile ID nProfile(int value):-

IWEB_GetResponse(pWeb->m_pIWeb,(pWeb->m_pIWeb, &pWeb->m_pIWebResp, &pWeb->m_CB, pWeb->pUrl,
WEBOPT_HANDLERDATA, pWeb,
WEBOPT_METHOD, "GET",

WEBOPT_NETWORK, AEE_NETWORK_UMTS(nProfile), 
WEBOPT_END));