HttpRequest for windows phone 8

Hi guys,

I’m working my cocos2d-x project for windows phone 8, but I found the “libcurl” library or relevant library is missing from cocos2d-x for wp8.

Do you guys have any best practice on handling the http request?

Regards,
Leo

Anyone help?

Actually I have some idea but not sure if it works:

  1. Create a C# windows phone bridge library that manage the http request functions. (Because there is not any library/functions to handle http stuff from C**)
  2. Call the C# functions from C**.

But now the problem is I don’t how to call a C# dll from C++ this time.

Any help will be appreciated.

Regards,
Leo

Leo Chan wrote:

Hi guys,
>
I’m working my cocos2d-x project for windows phone 8, but I found the “libcurl” library or relevant library is missing from cocos2d-x for wp8.
>
Do you guys have any best practice on handling the http request?
>
Regards,
Leo

which version do you use?
I download the 2.1.0 alpha(latest), without any error about libcurl.

Ming Tong wrote:

Leo Chan wrote:
> Hi guys,
>
> I’m working my cocos2d-x project for windows phone 8, but I found the “libcurl” library or relevant library is missing from cocos2d-x for wp8.
>
> Do you guys have any best practice on handling the http request?
>
> Regards,
> Leo
>
which version do you use?
I download the 2.1.0 alpha(latest), without any error about libcurl.

Hi Ming,

I also used the latest cocos2d-x for wp (https://github.com/cocos2d-x/cocos2dx-win8/tree/wp8_v2), but I can’t find the libcurl library inside.

Please let me know how to add libcurl into the project.

Regards,
Leo

Leo Chan wrote:

Ming Tong wrote:
> Leo Chan wrote:
> > Hi guys,
> >
> > I’m working my cocos2d-x project for windows phone 8, but I found the “libcurl” library or relevant library is missing from cocos2d-x for wp8.
> >
> > Do you guys have any best practice on handling the http request?
> >
> > Regards,
> > Leo
>
> which version do you use?
> I download the 2.1.0 alpha(latest), without any error about libcurl.
>
Hi Ming,
>
I also used the latest cocos2d-x for wp (https://github.com/cocos2d-x/cocos2dx-win8/tree/wp8_v2), but I can’t find the libcurl library inside.
>
Please let me know how to add libcurl into the project.
>
Regards,
Leo

Ah,did you just run the hello world project?

Ming Tong wrote:

Leo Chan wrote:
> Ming Tong wrote:
> > Leo Chan wrote:
> > > Hi guys,
> > >
> > > I’m working my cocos2d-x project for windows phone 8, but I found the “libcurl” library or relevant library is missing from cocos2d-x for wp8.
> > >
> > > Do you guys have any best practice on handling the http request?
> > >
> > > Regards,
> > > Leo
> >
> > which version do you use?
> > I download the 2.1.0 alpha(latest), without any error about libcurl.
>
> Hi Ming,
>
> I also used the latest cocos2d-x for wp (https://github.com/cocos2d-x/cocos2dx-win8/tree/wp8_v2), but I can’t find the libcurl library inside.
>
> Please let me know how to add libcurl into the project.
>
> Regards,
> Leo
>
Ah,did you just run the hello world project?
Hi Ming,

Nope, I’m actually migrating my game sources from cocos2d-x to cocos2d-x wp8.

Are you talking about the CurlTest in TestCpp Project, but it doesn’t work for me, and I also searched all the folders, but could not find any third-party library for libcurl.

If you get it work on libcurl, would you like to share here?

Regards,
Leo

Sorry, we are in different case.
I’ve never touched the libcurl, I suppose you have to port it to wp8 manually with the LibCurl source, then build target to ARM with VS2012.

Ming Tong wrote:

Sorry, we are in different case.
I’ve never touched the libcurl, I suppose you have to port it to wp8 manually with the LibCurl source, then build target to ARM with VS2012.

Thanks for your reply, but it seems not possible to compile the curl from the source on wp8.

http://curl.haxx.se/mail/lib-2012-11/0161.html

Regards,
Leo

Leo Chan wrote:

Ming Tong wrote:
> Sorry, we are in different case.
> I’ve never touched the libcurl, I suppose you have to port it to wp8 manually with the LibCurl source, then build target to ARM with VS2012.
>
Thanks for your reply, but it seems not possible to compile the curl from the source on wp8.
>
http://curl.haxx.se/mail/lib-2012-11/0161.html
>
Regards,
Leo

maybe you can try local sdk of WP8 which send httpwebrequest.