Jump to content

HttpRequest + RefererInfo?


Luffy
 Share

Recommended Posts

Hi there,

I need a Http request with referer information. The AutoIt Forum Search gives me no solution. ( I used it the whole day B) )

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.

:o

Edited by Luffy
Link to comment
Share on other sites

  • Moderators

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

how do you use that function :o

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

B)

Edited by Luffy
Link to comment
Share on other sites

  • Moderators

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...