Problem - Winsock or Host?
Hi guys,
i have a proeblem on some hosts when i POST with winsock...and if i have a string in the message like "WORD1&WORD2" the message gets posted on the host only till the "WORD1"
I dont know why is that...all other hosts work fine
Could it be becasue of the database collation....? or winsock? or the hosts's php headers???? :confused: :cry:
Cheers
Re: Problem - Winsock or Host?
You know the rules, batori. No code, no can help.
Re: Problem - Winsock or Host?
well tthe code is really secondary here...
i dont know where to put this topic...
it has to do with html encoding and vb xD
there is no code but the standart post method with winscock .. the thing is that the code arrives to all vbulletin boards but not phpbb3 based when u have the & char in the message..that's the whole story....
Even with urlencode before psoting does not solve the problem... hmmm
Re: Problem - Winsock or Host?
Will your urlencode replace the & amp to %26? If not, just do it.
Quote:
the thing is that the code arrives to all vbulletin boards but not phpbb3 based
If you just work on a forum spam/flooder program, please dont do it.
Re: Problem - Winsock or Host?
Please...
You dont know what app is that...it cannot flood...i tought you would know that..because there is a time limit...
and im doing it for my board...and i have a whitelist of people to use it...
It cannot spam or anything like that...it's a simulation of real posting....
Only members with FLOOD TIME disabled can post alot...
That's was not the point...
The point is that...the subject when encoded comes good....but the message is not...
i dont think that's related to winsock or vb...but i dont have any idea what could that be ...
p.s my app is ready for vbulletin , phpbb2 and other forums...and people are using it...it's a good thing for posters...(warez)
Re: Problem - Winsock or Host?
I did replace
as the code fdor urlencode does :
& = %26
still nothing... :S
Re: Problem - Winsock or Host?
Might be because phpbb3 uses some kind of special encoding of these special commas in textareas. Look for the refence docs to see what it is does. You may also want to inspect any javascript that is related the textarea in phpbb3
Re: Problem - Winsock or Host?
Ahh i didnt find anything...
I witched to encoding (header) to text/html ; iso , and text/html as phpbb2 has...but i see winsock sending all the data i gave him to sent...but the data is just not coming as should be.... funny thing is that phpbb2 works fine xD
Re: Problem - Winsock or Host?
str = "®––"
Winsock wont send that str string
It sends this : str = "®â â "
Any ideas
and i can send the ® char only if i send it like this : ®
any ideas?
Re: Problem - Winsock or Host?
Quote:
Originally Posted by batori
str = "®––"
Winsock wont send that str string
It sends this : str = "®â â "
Any ideas
and i can send the ® char only if i send it like this : ®
any ideas?
perhaps u could convert the char to hex and send it.. ® ="AE" in hex . so.. ®–– becomes "C2 AE E2 80 93 E2 80 93 "... i think so many char lose their value when u copy and paste it..
Re: Problem - Winsock or Host?
Sure m8, i will try it..thanks for the help