Re: [hlcoders] HTTP-Request?

2010-06-30 Thread Milot Mirdita
I did this with cpp-netlib, which builds upon boost and boost.asio. cpp-netlib: http://github.com/mikhailberis/cpp-netlib You might get into some weird macro problems. Vgui does #define null 0L and boost.asio uses null somewhere. To do a http request, do something like this: http::client

Re: [hlcoders] HTTP-Request?

2010-06-30 Thread Ash Dookun
@list.valvesoftware.com Subject: Re: [hlcoders] HTTP-Request? I did this with cpp-netlib, which builds upon boost and boost.asio. cpp-netlib: http://github.com/mikhailberis/cpp-netlib You might get into some weird macro problems. Vgui does #define null 0L and boost.asio uses null somewhere

Re: [hlcoders] HTTP-Request?

2010-06-30 Thread Milot Mirdita
, 2010 5:19 PM To: Discussion of Half-Life Programminghlcoders@list.valvesoftware.com Subject: Re: [hlcoders] HTTP-Request? I did this with cpp-netlib, which builds upon boost and boost.asio. cpp-netlib: http://github.com/mikhailberis/cpp-netlib You might get into some weird macro problems. Vgui

[hlcoders] HTTP-Request?

2010-06-28 Thread Ash Dookun
hey forum. I'm creating a css plugin. How should i go about sending a http request. then reading the result. So i take the steam id pass it to the webpage some how? then read the information that PHP script has processed? ___ To unsubscribe, edit

Re: [hlcoders] HTTP-Request?

2010-06-28 Thread Saul Rennison
Probably more suited to stackoverflow.com if I'm honest. You will get a more professional response, but I'm sure many subscribers here would be more than willing to help with any plugin integrations questions (including me!) On Monday, June 28, 2010, Ash Dookun ashvin_doo...@hotmail.com wrote:

Re: [hlcoders] HTTP-Request?

2010-06-28 Thread bl4nk
What are you trying to do with this plugin? You were pretty vague with what you're trying to send a HTTP request with. Sent from my iPod On Jun 28, 2010, at 5:11 PM, Ash Dookun ashvin_doo...@hotmail.com wrote: hey forum. I'm creating a css plugin. How should i go about sending a http

Re: [hlcoders] HTTP-Request?

2010-06-28 Thread Justin Krenz
You'll need a library that will do it for you. I used Boost's Asio: http://www.boost.org/doc/libs/1_43_0/doc/html/boost_asio.html You call one of its functions with a url, and it will return a string of the HTML content of the page. To make it easier, you can retrieve a steam account's info in

Re: [hlcoders] HTTP-Request?

2010-06-28 Thread Jonas 'Sortie' Termansen
Yeah, use an external library. Unless, that is, you want to get throat-deep in the mysteries of TCP/IP socket programming, HTTP parsing, and various other stuff. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit:

[hlcoders] HTTP-Request?

2010-06-28 Thread Ash Dookun
Well what I'm trying to do is send a request to a webpage. To receive a result. I already have my PHP script set up. So that if a POST or GET item with the name STEAMID is set and is in the correct form it will search a database then return found or not found to the page. Thanks very much for

Re: [hlcoders] HTTP-Request?

2010-06-28 Thread 1nsane
Couldn't you use a mysql database instead for this? On Mon, Jun 28, 2010 at 7:30 PM, Ash Dookun ashvin_doo...@hotmail.comwrote: Well what I'm trying to do is send a request to a webpage. To receive a result. I already have my PHP script set up. So that if a POST or GET item with the name

Re: [hlcoders] HTTP-Request?

2010-06-28 Thread Ash Dookun
@list.valvesoftware.com Subject: Re: [hlcoders] HTTP-Request? Couldn't you use a mysql database instead for this? On Mon, Jun 28, 2010 at 7:30 PM, Ash Dookun ashvin_doo...@hotmail.comwrote: Well what I'm trying to do is send a request to a webpage. To receive a result. I already have my PHP script set up

Re: [hlcoders] HTTP-Request?

2010-06-28 Thread Saul Rennison
in the library file. -- From: 1nsane 1nsane...@gmail.com Sent: Tuesday, June 29, 2010 12:40 AM To: Discussion of Half-Life Programming hlcoders@list.valvesoftware.com Subject: Re: [hlcoders] HTTP-Request? Couldn't you use a mysql database instead