Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Donations
Monthly costs: -50€
Income (ads): +25€
Donations (last month): +0€

Current balance: -65€
(last updated 2013/05)

Please make a donation if you want to help keeping The-Starport online:

Thanks!
Collapse/Expand Random Image
Collapse/Expand Poll
Would you be interested in Star Citizen modding?
Yes.
No, not interested in SC mods/modding.
No, not interested in SC in general.
Total Votes: 278
3 Comments
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Twitter
Collapse/Expand Who's Online
15 user(s) are online (8 user(s) are browsing Forum)

Members: 1
Guests: 14

selene, more...
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 116 users playing Freelancer on 86 servers.
May. 25, 2013

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



Send HTTP request?
Not too shy to talk
Joined:
2008/4/3 23:32
Group:
Registered Users
Posts: 97
Offline
HI, all
Im planning to make a flhook plugin to send http request, i found some code for Windows From Application, but they can't run in flhook....so i want to know how can i do that, give some help please. ;D

PS. others about queue and http timeout, i dont want to see flhook and flserver lag when it sending request to a slow http server, how i avoid this problem?

Posted on: 2008/11/8 7:35
Report Top
Re: Send HTTP request?
Just can't stay away
Joined:
2008/6/16 20:41
Group:
Registered Users
Posts: 261
Offline
you could use socket connections and do use the send and receive function from WIN32_SOCKETS... And you can set the timeout for this socket connection as well....

see http://msdn.microsoft.com/en-us/library/ms740673(VS.85).aspx

dunno if this helps you


Posted on: 2008/11/8 7:57
Open in new window
Report Top
Re: Send HTTP request?
Not too shy to talk
Joined:
2008/4/3 23:32
Group:
Registered Users
Posts: 97
Offline
Thank you Huor, i will try this.

Posted on: 2008/11/8 8:08
Report Top
Re: Send HTTP request?
Just can't stay away
Joined:
2008/8/21 4:48
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 450
Offline
You could consider using libcurl http://curl.haxx.se/libcurl/. It's got a simple programming interface.

Posted on: 2008/11/8 8:49
Report Top
Re: Send HTTP request?
Not too shy to talk
Joined:
2008/4/3 23:32
Group:
Registered Users
Posts: 97
Offline
WOW, Thank you very much Cannon.

Posted on: 2008/11/8 9:06
Report Top
Re: Send HTTP request?
Not too shy to talk
Joined:
2008/5/26 19:58
Group:
Registered Users
Posts: 55
Offline
Quote:
PS. others about queue and http timeout, i dont want to see flhook and flserver lag when it sending request to a slow http server, how i avoid this problem?


When you need to send a request, shove it in a queue handled by another thread It gets a bit complicated when you need to react on replies, but there should be loads of stuff on threading & queuing on the web... try codeproject or codeguru.

Posted on: 2008/11/9 7:01
Report Top
Re: Send HTTP request?
Not too shy to talk
Joined:
2008/4/3 23:32
Group:
Registered Users
Posts: 97
Offline
Thanks for reply, i has successful post HTTP request via libcurl.dll, and looks slow http will not lag the server ;D

Posted on: 2008/11/9 20:26
Report Top