Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 19:59

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



WebTcp Packet = Post ohne inhalt

Discussion on WebTcp Packet = Post ohne inhalt within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
WebTcp Packet = Post ohne inhalt

Hi,

ich ab ein kleinen Problem. Und zwar zeigt mir Live HTTP headers ein POST Packet ohne Inhalt an. Wie kann ich jetzt mit WebTcp ein leeren Post senden? Weil wenn man bei WebTcp
PHP Code:
$WTCP.navigate("http://xxxx.***.***"""
so macht dann nimmt er es als ein Get.

Hoffe jemand kennt das, sonst gibs ne alternative mit Tcp oder winhttp oder?
Ludder231 is offline  
Old 04/02/2012, 13:38   #2
 
aj1987's Avatar
 
elite*gold: 1003
Join Date: Feb 2010
Posts: 791
Received Thanks: 709
was hast denn bei der grösse unter Content-length im liveheader?
und ich empfehle einfach mal nen proxy dazwischen zu hängen und das ganze mal zu analysieren...
fiddler is dazu gut geeignet...
aj1987 is offline  
Old 04/02/2012, 13:50   #3
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Content-length = 0 ....
Ludder231 is offline  
Old 04/02/2012, 13:56   #4
 
aj1987's Avatar
 
elite*gold: 1003
Join Date: Feb 2010
Posts: 791
Received Thanks: 709
n post ohne inhalt ist recht merkwürdig, aber ok...
wie sendst du denn dein Packet?

Hier mal n schipsel von einem meiner Scripte...
Solltest du eben deinen bedürfnissen anpassen...

Code:
Global $pack ="CONTENT"
Global $data="POST /ZIEL" HTTP/1.1"&@crlf& _
"Host: HOST"&@crlf& _
"User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0"&@crlf& _
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"&@crlf& _
"Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3"&@crlf& _
"Accept-Encoding: gzip, deflate"&@crlf& _
"DNT: 1"&@crlf& _
"Connection: keep-alive"&@crlf& _
"Content-type: application/x-www-form-urlencoded"&@crlf& _
"Content-length: " &StringLen($pack)&@crlf&@crlf&$pack

TCPStartup()
$ip= TCPNameToIP("ZIELURL")
ConsoleWrite("IP: "&$ip&@crlf)

$socket=TCPConnect($ip,80)
TCPSend($socket,$data)
aj1987 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
WebTcp post Packete funktionieren nicht :-O
09/23/2011 - AutoIt - 6 Replies
Hi, ich wollte nen Acc creator machen für son Pferde spiel. So jz hab ich aber ein kleines Problem und zwar gibt es ein Problem mit den Post Packeten. Hier die Post Packete: Klappt noch: $oWebTcp.Navigate("http://www.howrse.de/insc ription/inscription?etape=2", "inscriptionType=1&inscriptionNom="& amp;$AccountName&"&inscriptionSexe=fe melle") Das Packet hier Postet man wenn man sein Pferd+den Namen+und das geschlecht ausgewählt hat und auf OK drückt.
Webtcp.au3
11/14/2010 - AutoIt - 5 Replies
€:Hab sie gefunden :) man musste angemeldet sein xDDD wer sie haben will PM me ;) €2:Ich hab alles nötige jetzt mal hochgeladen....... falls ihr weiter fragen habt googelt doch mal PS: Die UDF is nich von mir!!!!!!!!! VIRUSSCAN



All times are GMT +1. The time now is 19:59.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.