Result httpcInit();
void httpcExit();
-Result httpcOpenContext(httpcContext *context, char* url, u32 use_defaultproxy);//use_defaultproxy should be zero normally, unless you don't want HTTPC_SetProxyDefault() to be used automatically.
+Result httpcOpenContext(httpcContext *context, char* url, u32 use_defaultproxy);//use_defaultproxy should be non-zero normally, unless you don't want HTTPC_SetProxyDefault() to be used automatically.
Result httpcCloseContext(httpcContext *context);
Result httpcAddRequestHeaderField(httpcContext *context, char* name, char* value);
Result httpcBeginRequest(httpcContext *context);
if(__httpc_servhandle)return 0;
if((ret=srvGetServiceHandle(&__httpc_servhandle, "http:C")))return ret;
- //*((u32*)0x600) = __httpc_servhandle;
-
ret = HTTPC_Initialize(__httpc_servhandle);
if(ret!=0)return ret;
if(__httpc_servhandle==0)return;
svcCloseHandle(__httpc_servhandle);
+
+ __httpc_servhandle = 0;
}
Result httpcOpenContext(httpcContext *context, char* url, u32 use_defaultproxy)