Reminder: Internet Explorer 6 or below are NOT supported.





|
There are currently 116 users playing Freelancer on
86 servers. | May. 25, 2013 |
The Starport Forum Index
>
The Shipyard
>
Speciality Modding
>
FLHook Development
>
FLHook Plugin Version
>
Send HTTP request?
Browsing this Thread:
1 Anonymous Users
Send HTTP request? |
||||
|---|---|---|---|---|
|
Not too shy to talk
![]()
Joined:
2008/4/3 23:32 Group:
Registered Users
Posts:
97
![]() |
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
|
|||
|
||||
Re: Send HTTP request? |
||||
|---|---|---|---|---|
|
Just can't stay away
![]()
Joined:
2008/6/16 20:41 Group:
Registered Users
Posts:
261
![]() |
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
|
|||
|
||||
|
||||
Re: Send HTTP request? |
||||
|---|---|---|---|---|
|
Not too shy to talk
![]()
Joined:
2008/4/3 23:32 Group:
Registered Users
Posts:
97
![]() |
Thank you Huor, i will try this.
![]()
Posted on: 2008/11/8 8:08
|
|||
|
||||
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
![]() |
You could consider using libcurl http://curl.haxx.se/libcurl/. It's got a simple programming interface.
Posted on: 2008/11/8 8:49
|
|||
|
||||
Re: Send HTTP request? |
||||
|---|---|---|---|---|
|
Not too shy to talk
![]()
Joined:
2008/4/3 23:32 Group:
Registered Users
Posts:
97
![]() |
WOW, Thank you very much Cannon.
Posted on: 2008/11/8 9:06
|
|||
|
||||
Re: Send HTTP request? |
||||
|---|---|---|---|---|
|
Not too shy to talk
![]()
Joined:
2008/5/26 19:58 Group:
Registered Users
Posts:
55
![]() |
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
|
|||
|
||||
Re: Send HTTP request? |
||||
|---|---|---|---|---|
|
Not too shy to talk
![]()
Joined:
2008/4/3 23:32 Group:
Registered Users
Posts:
97
![]() |
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
|
|||
|
||||










Donations
Forum






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.