Luffy Posted October 31, 2005 Share Posted October 31, 2005 (edited) Hi there,I need a Http request with referer information. The AutoIt Forum Search gives me no solution. ( I used it the whole day )1 function I've found > http://www.autoitscript.com/forum/index.php?showtopic=15109 < but it dont work for me (returns 0) . Maybe because i dont know the correct header definition. pls help me. thx. Edited October 31, 2005 by Luffy Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 31, 2005 Moderators Share Posted October 31, 2005 Post the non working examples you have, and maybe someone can help you further. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
w0uter Posted October 31, 2005 Share Posted October 31, 2005 (edited) how do you use that function please post a litle snippet of code *edit damn you ron. Edited October 31, 2005 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Luffy Posted October 31, 2005 Author Share Posted October 31, 2005 (edited) how do you use that function please post a litle snippet of code*edit damn you ron.something like that .... Dim $header $header = "GET / HTTP/1.1" & @CRLF & _ "Host: "& $host &@CRLF & _ "Referer: www.whatever.com" & @CRLF & @CRLF $Source=_INetGetSource($link,$header) $FileName=FileSaveDialog("Save File","C:\","") FileWrite($FileName,$Source) ...$host is the host of $link Edited October 31, 2005 by Luffy Link to comment Share on other sites More sharing options...
Luffy Posted October 31, 2005 Author Share Posted October 31, 2005 *bumb*I'm wrong, i know but what's the mistake. i ll tried to build the header like this: http://www.autoitscript.com/forum/index.php?showtopic=16001So i've to use these TCP* functions to get it working? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 31, 2005 Moderators Share Posted October 31, 2005 So i've to use these TCP* functions to get it working?Well, let me ask you this...Did you try the TCP settings? I imagine by looking at the post you referred us to, that's part of the script your trying to run. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
w0uter Posted October 31, 2005 Share Posted October 31, 2005 if i remember correct it should be like Dim $header = "Host: " & $host & @CRLF & "Referer: www.whatever.com" $Source=_INetGetSource($link,$header) $FileName=FileSaveDialog("Save File","C:\","") FileWrite($FileName,$Source) My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now