Sign in to follow this  
Followers 0
Luffy

HttpRequest + RefererInfo?

7 posts in this topic

#1 ·  Posted (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 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

Share this post


Link to post
Share on other sites



Post the non working examples you have, and maybe someone can help you further.


[center]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.[/center]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

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.


[center]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.[/center]

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0