Raised This Month: $ Target: $400
 0% 

GET Sockets


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
K1d0x
Senior Member
Join Date: Apr 2012
Location: Copenhagen, Denmark
Old 02-17-2013 , 01:00   GET Sockets
Reply With Quote #1

Hello to all, i have a problem, i try to sent a text with separator (space)

Quote:
GET xxx.org/live.php?p=not&v=10.1 table&f=dotnet HTTP/1.1^r^nHost:%s^r^nConnection: close^r^n^r^n
value of v can't be sent to address if contains spaces, exist an char like ^"context 2 or 3^" for sent full line? or is not possible?

PS: live.php saves informations from plugin in a database (MYSQL)
Thanks !

Last edited by K1d0x; 02-17-2013 at 01:09.
K1d0x is offline
Send a message via Yahoo to K1d0x Send a message via Skype™ to K1d0x
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-17-2013 , 03:56   Re: GET Sockets
Reply With Quote #2

You have to encode it. A space is %20
__________________
fysiks is offline
K1d0x
Senior Member
Join Date: Apr 2012
Location: Copenhagen, Denmark
Old 02-17-2013 , 13:27   Re: GET Sockets
Reply With Quote #3

Does't work with %20 apper an error in console incorrectly format

Error:
String Formatted icorrectly - parameter 8 <total7>
Parameter error line 66 (where is get with %20 (space))

Last edited by K1d0x; 02-17-2013 at 13:35.
K1d0x is offline
Send a message via Yahoo to K1d0x Send a message via Skype™ to K1d0x
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-17-2013 , 14:58   Re: GET Sockets
Reply With Quote #4

To get a % symbol to be put into the final string with any formatting function, you need to escape it: "%%".
__________________
fysiks is offline
K1d0x
Senior Member
Join Date: Apr 2012
Location: Copenhagen, Denmark
Old 02-17-2013 , 16:25   Re: GET Sockets
Reply With Quote #5

Like this?
Quote:
GET xxx.org/live.php?p=not&v=10.1%20%table&f=dotnet HTTP/1.1^r^nHost:%s^r^nConnection: close^r^n^r^n
K1d0x is offline
Send a message via Yahoo to K1d0x Send a message via Skype™ to K1d0x
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-17-2013 , 16:51   Re: GET Sockets
Reply With Quote #6

I said "%%" not "%SomethingHere%". You would have already know that it wouldn't work if you actually tried it.
__________________

Last edited by fysiks; 02-17-2013 at 16:52.
fysiks is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 02-17-2013 , 19:06   Re: GET Sockets
Reply With Quote #7

isnt the default escape char ^ ?
jimaway is offline
Old 02-17-2013, 19:26
fysiks
This message has been deleted by fysiks. Reason: Yami's response is more to the point.
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-17-2013 , 20:15   Re: GET Sockets
Reply With Quote #8

Quote:
Originally Posted by jimaway View Post
isnt the default escape char ^ ?
Yes, but % is not being used as an escape character, rather a format parameter. %% must be used so format can detect that it is the literal % character instead of a format parameter.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
K1d0x
Senior Member
Join Date: Apr 2012
Location: Copenhagen, Denmark
Old 02-17-2013 , 21:06   Re: GET Sockets
Reply With Quote #9

Does't work, in page appear 10.1%table but in .sma is v=10.1%%table

Last edited by K1d0x; 02-17-2013 at 21:07.
K1d0x is offline
Send a message via Yahoo to K1d0x Send a message via Skype™ to K1d0x
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-17-2013 , 21:08   Re: GET Sockets
Reply With Quote #10

Print the message to your console and then show it to us
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 21:41.


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