C# WebRequest with ****** EXAMPLE for ptc

Discussion in '.NET' started by Joshua123, Aug 9, 2011.

  1. Joshua123

    Joshua123 New Member

    Joined:
    Aug 4, 2011
    Messages:
    71
    Likes Received:
    1
    Trophy Points:
    0
    Code:
     
    ...
    [URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.String"]string[/URL] [B]str[/B] = [URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.IO.File"]File[/URL].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.IO.File%2FReadAllText(String)%3AString"]ReadAllText[/URL]("c00kie[COLOR=#800000].txt"[/COLOR]);
     [URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FSystem%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.Net.HttpWebRequest"]HttpWebRequest [/URL][URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FBuxP%3A1.0.0.0%2FBuxP.User%2Freq%3ASystem.Net.HttpWebRequest"]req[/URL] = ([URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FSystem%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.Net.HttpWebRequest"]HttpWebRequest[/URL]) [URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FSystem%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.Net.WebRequest"]WebRequest[/URL].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FSystem%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.Net.WebRequest%2FCreate(String)%3ASystem.Net.WebRequest"]Create[/URL]([COLOR=#800000]"http://myptc.info/viewads.php"[/COLOR]);     [COLOR=#1000a0]
    [U]r[/U][/COLOR][URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FBuxP%3A1.0.0.0%2FBuxP.User%2Freq%3ASystem.Net.HttpWebRequest"]eq[/URL].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FSystem%3A4.0.0.0%3Ab77a5c561934e089%2FSystem.Net.WebRequest%2Fproperty%3AHeaders%3ASystem.Net.WebHeaderCollection"]Headers[/URL].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FSystem%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.Collections.Specialized.NameValueCollection%2FAdd(String%2CString)"]Add[/URL]([COLOR=#800000]"c00kie"[/COLOR], str); 
    [URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FBuxP%3A1.0.0.0%2FBuxP.User%2Frep%3ASystem.Net.HttpWebResponse"]rep[/URL] = ([URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FSystem%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.Net.HttpWebResponse"]HttpWebResponse[/URL]) [COLOR=#1000a0]this[/COLOR].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FBuxP%3A1.0.0.0%2FBuxP.User%2Freq%3ASystem.Net.HttpWebRequest"]req[/URL].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FSystem%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.Net.WebRequest%2FGetResponse()%3ASystem.Net.WebResponse"]GetResponse[/URL](); 
     [URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.IO.StreamReader%2F.ctor(System.IO.Stream)"]StreamReader[/URL] [URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FBuxP%3A1.0.0.0%2FBuxP.User%2Fstrd%3ASystem.IO.StreamReader"]strd[/URL] = [COLOR=#1000a0]new[/COLOR] [URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.IO.StreamReader%2F.ctor(System.IO.Stream)"]StreamReader[/URL]([COLOR=#1000a0]this[/COLOR].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FBuxP%3A1.0.0.0%2FBuxP.User%2Frep%3ASystem.Net.HttpWebResponse"]rep[/URL].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FSystem%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.Net.WebResponse%2FGetResponseStream()%3ASystem.IO.Stream"]GetResponseStream[/URL]());     [URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.String"]
    string[/URL][] [B]strArray[/B] =[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FBuxP%3A1.0.0.0%2FBuxP.User%2Fstrd%3ASystem.IO.StreamReader"]strd[/URL].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.IO.TextReader%2FReadToEnd()%3AString"]ReadToEnd[/URL]().[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.String%2FSplit(Char[])%3AString[]"]Split[/URL]([COLOR=#1000a0]new[/COLOR] [URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.Char"]char[/URL][] { [COLOR=#800000]'"'[/COLOR] });
    [URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FBuxP%3A1.0.0.0%2FBuxP.User%2Frep%3ASystem.Net.HttpWebResponse"]rep[/URL].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FSystem%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.Net.WebResponse%2FClose()"]Close[/URL]();
    [URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FBuxP%3A1.0.0.0%2FBuxP.User%2Fstrd%3ASystem.IO.StreamReader"]strd[/URL].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.IO.TextReader%2FClose()"]Close[/URL]();
    [URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FBuxP%3A1.0.0.0%2FBuxP.User%2Freq%3ASystem.Net.HttpWebRequest"]req[/URL].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FSystem%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.Net.WebRequest%2FAbort()"]Abort[/URL]();
    f[COLOR=#1000a0]oreach[/COLOR] ([URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.String"]string[/URL] [B]str2[/B] [COLOR=#1000a0]in[/COLOR] strArray)
         { 
            [COLOR=#1000a0]if[/COLOR] (str2.[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.String%2FIndexOf(String)%3AInt32"]IndexOf[/URL]([COLOR=#800000]"adurl"[/COLOR]) == [COLOR=#800000]0[/COLOR]) 
              { 
                [COLOR=#1000a0]this[/COLOR].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2FBuxP%3A1.0.0.0%2FBuxP.User%2FlistVideo%3ASystem.Collections.Generic.List<String>"]listurl[/URL].[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.Collections.Generic.List<>%2FAdd(<!0>)"]Add[/URL](str2.[URL="http://www.moneymakerdiscussion.com/forum/redirector.php?url=http%3A%2F%2Fwww.aisto.com%2Froeder%2Fdotnet%2FDefault.aspx%3FTarget%3Dcode%3A%2F%2Fmscorlib%3A2.0.0.0%3Ab77a5c561934e089%2FSystem.String%2FReplace(String%2CString)%3AString"]Replace[/URL]([COLOR=#800000]"adurl"[/COLOR], [COLOR=#800000]""[/COLOR]));
             }  
       }  
    ...
    
     
  2. Joshua123

    Joshua123 New Member

    Joined:
    Aug 4, 2011
    Messages:
    71
    Likes Received:
    1
    Trophy Points:
    0
    instead of c00kie at the req.Headers.Add u have to enter the word properly written ;) with oo and not 00
     
  3. seo20

    seo20 Make Money Online Very Active Members

    Joined:
    Nov 19, 2009
    Messages:
    82
    Likes Received:
    9
    Trophy Points:
    0
    Agree - that would be a great start ;-)
     

Share This Page