Raised This Month: $51 Target: $400
 12% 

[EXTENSION] Socket (3.0.1)


Post New Thread Reply   
 
Thread Tools Display Modes
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 07-03-2010 , 07:30   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #281

It's http://en.wikipedia.org/wiki/Chunked_transfer_encoding

You should be able to avoid it by sending a Connection: close header in combination with a HTTP/1.0 request
sfPlayer is offline
Fishcake
Junior Member
Join Date: Feb 2009
Location: England
Old 07-03-2010 , 09:03   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #282

Aha magic! Works like a charm. Thanks for your help.
Fishcake is offline
Send a message via MSN to Fishcake
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 07-30-2010 , 18:55   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #283

Would anybody have any examples on how to properly handle GET and POST data sent from a client, to the server? I'm trying to properly get GET and POST variables and other data sent from a web browser to a server running sockets, and I'm not sure the best approach to get the data. Thanks.
__________________
msleeper is offline
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 07-30-2010 , 19:06   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #284

GET is easy, you have to receive until you hit the 1st \r\n, extract the path and split it at ? and & into variable=value pairs. POST is similar, but the variables are in the request body, after the header.
sfPlayer is offline
321
Member
Join Date: Jun 2010
Old 08-01-2010 , 16:51   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #285

please fix sourcecode link
321 is offline
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 08-02-2010 , 11:39   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #286

i attached it.
Attached Files
File Type: 7z sm-ext-socket.7z (656.0 KB, 462 views)
sfPlayer is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-02-2010 , 12:17   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #287

That one is also generating a 500 error, I've added it to the open bug report.
__________________
asherkin is offline
psychonic

BAFFLED
Join Date: May 2008
Old 08-02-2010 , 12:32   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #288

Quote:
Originally Posted by asherkin View Post
That one is also generating a 500 error, I've added it to the open bug report.
I believe it happens with all 7z attachments.
psychonic is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 08-04-2010 , 08:31   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #289

totally friggen lost here. Where how and why.

NM. I'll just add it to my list of WTF, GFY and TIFU lolz
__________________
Happy Happy Joy Joy


Last edited by sinblaster; 08-04-2010 at 08:54.
sinblaster is offline
321
Member
Join Date: Jun 2010
Old 08-05-2010 , 20:56   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #290

i still cant download sourcecode, please upload it on public fileshare
321 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode