The text file approach only applies to POST parameters set from the curl
command, and in no other case.
When creating an HTTP client from within a program, you should be able to
configure the POST parameters via method calls. If you can't, it's a pretty
worthless HTTP library. Each client library is different, check your docs.
-John Kalucki
http://twitter.com/jkalucki
Infrastructure, Twitter Inc.
On Tue, Mar 2, 2010 at 12:42 PM, Mad Euchre wrote:
> This is the VB code I would use to start any http stream
>
>request = DirectCast(WebRequest.Create("http://
> stream.twitter.com/1/statuses/filter.json - name:pw"), HttpWebRequest)
>request.Credentials = New NetworkCredential("name", "pw")
>' Get response
>response = DirectCast(request.GetResponse(),
> HttpWebResponse)
>
>' Get the response stream into a reader
>reader = New StreamReader(response.GetResponseStream())
>
>
> The streaming api documentation says to create a file called track.txt
> and add text similar to this without the quotes. "track=peter, paul,
> mary"
>
> Then use curl @track.txt http://stream.twitter.com/1/statuses/filter.json
> - name:pw
>
> I can't believe I have to shell out to DOS and run the curl command
> line.
>
> My direct question is how do others incorportate the @track.txt in the
> VB.Net web request?
>
> Maybe something like this?
>
> http://stream.twitter.com/1/statuses/filter.json - name:pw?
> track.txt
>
> Thanks
>
>