Ask a Question related to ASP.NET General, Design and Development.
-
dave wanta #1
Re: How to Spoof Referer URL
you mean like?
(this is some old beta1 code i wrote years ago, don't know if all the
classes are still named appropriately, as I haven't used it since i wrote
it.)
Function FetchURL(SomeURL as String) as String
Dim WebResp as HTTPWebresponse
Dim HTTPGetRequest as HttpWebRequest
Dim sr As StreamReader
dim myString as String
HTTPGetRequest = WebRequestFactory.Create(SomeURL)
HTTPGetRequest.KeepAlive = false
HTTPGetRequest.Referer = "http://www.microsoft.com"
WebResp = HTTPGetRequest.GetResponse()
sr = new StreamReader(WebResp.GetResponseStream(), Encoding.ASCII)
myString = sr.ReadToEnd()
Return myString
End Function
Cheers!
Dave
[url]www.aspNetEmail.com[/url]
"Admin" <intermension@hotmail.com> wrote in message
news:37881286.0307052133.338c97a5@posting.google.c om...> Hi There
>
> Can someone tell me how to do this using .net??
> Thanks.
>
> Henry
dave wanta Guest
-
flash and cgi.referer
I'm trying to create a flash anti-leech method, whereby my flash movie calls a ..cfm module that compares the cgi.host and cgi.referer variables. ... -
url referer
Hi, Is there anyway you can use coldfusion to get the full url of a webpage? #cgi.HTTP_REFERER# works but only if a link is actually clicked... -
Page referer not getting set
Hi All, I do web design for some small organizations, and one of the sites I have set up takes online conference registrations. Now, most of the... -
Ma Referer length
All, I have a question about the Max Referer length. By default this is 256 I am not fully sure I understand this property. It this a header that... -
how do I spoof a get request
Yeah, I believe on Apache/Linux, it needs to be compiled in, and on windows there is just some configuration and file moving to do. cURL will do... -
Admin #2
Re: How to Spoof Referer URL
Yes. Precisely like that. Thank you.
"dave wanta" <nospam@nospam.com> wrote in message news:<eBAncY8QDHA.2852@tk2msftngp13.phx.gbl>...> you mean like?
> (this is some old beta1 code i wrote years ago, don't know if all the
> classes are still named appropriately, as I haven't used it since i wrote
> it.)
>
> Function FetchURL(SomeURL as String) as String
> Dim WebResp as HTTPWebresponse
> Dim HTTPGetRequest as HttpWebRequest
> Dim sr As StreamReader
> dim myString as String
>
> HTTPGetRequest = WebRequestFactory.Create(SomeURL)
> HTTPGetRequest.KeepAlive = false
> HTTPGetRequest.Referer = "http://www.microsoft.com"
> WebResp = HTTPGetRequest.GetResponse()
> sr = new StreamReader(WebResp.GetResponseStream(), Encoding.ASCII)
> myString = sr.ReadToEnd()
>
> Return myString
> End Function
>
> Cheers!
> Dave
> [url]www.aspNetEmail.com[/url]
>
>
> "Admin" <intermension@hotmail.com> wrote in message
> news:37881286.0307052133.338c97a5@posting.google.c om...> > Hi There
> >
> > Can someone tell me how to do this using .net??
> > Thanks.
> >
> > HenryAdmin Guest



Reply With Quote

