|
-
Mar 3rd, 2009, 09:39 AM
#1
Thread Starter
Hyperactive Member
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????
Cheers
Thanks for helping me out.
-
Mar 3rd, 2009, 10:14 AM
#2
Re: Problem - Winsock or Host?
You know the rules, batori. No code, no can help.
-
Mar 3rd, 2009, 10:54 AM
#3
Thread Starter
Hyperactive Member
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
Thanks for helping me out.
-
Mar 3rd, 2009, 10:58 AM
#4
Re: Problem - Winsock or Host?
Will your urlencode replace the & amp to %26? If not, just do it.
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.
-
Mar 3rd, 2009, 11:05 AM
#5
Thread Starter
Hyperactive Member
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)
Thanks for helping me out.
-
Mar 3rd, 2009, 11:06 AM
#6
Thread Starter
Hyperactive Member
Re: Problem - Winsock or Host?
I did replace
as the code fdor urlencode does :
& = %26
still nothing... :S
Thanks for helping me out.
-
Mar 3rd, 2009, 11:08 AM
#7
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
-
Mar 3rd, 2009, 04:34 PM
#8
Thread Starter
Hyperactive Member
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
Thanks for helping me out.
-
Mar 4th, 2009, 06:12 AM
#9
Thread Starter
Hyperactive Member
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?
Thanks for helping me out.
-
Mar 4th, 2009, 07:52 PM
#10
Hyperactive Member
Re: Problem - Winsock or Host?
 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..
-
Mar 5th, 2009, 04:43 AM
#11
Thread Starter
Hyperactive Member
Re: Problem - Winsock or Host?
Sure m8, i will try it..thanks for the help
Thanks for helping me out.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|