Sinisterly
[ HELP ] adding a set value to a URL - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework)
+--- Thread: [ HELP ] adding a set value to a URL (/Thread-HELP-adding-a-set-value-to-a-URL)



[ HELP ] adding a set value to a URL - NullData - 04-25-2019

So I am making/updating my proxy scraper and I want the user to set the timeout of a proxy with a track bar I have added.
and to make the value of the trackbar be the timeout value in the URL.

I am doing this in VB.Net and names the Trackbar to "tbTimeout"
inside the URL it shows this

Dim response As System.Net.HttpWebResponse = DirectCast(DirectCast(WebRequest.Create("https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=10000&country=all&ssl=all&anonymity=all"), System.Net.HttpWebRequest).GetResponse(), System.Net.HttpWebResponse)


timeout=10000 and would like it to have it be set by the user using the value of the trackbar.


RE: [ HELP ] adding a set value to a URL - NullData - 04-26-2019

I figured it out

https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=" & tbTimeOut.Value & "&country=all&ssl=all&anonymity=all

all I had to add was "& tbTimeOut.Value & " to the timeout value.


RE: [ HELP ] adding a set value to a URL - darkninja1980 - 04-26-2019

(04-26-2019, 02:52 AM)NullData Wrote: I figured it out

https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=" & tbTimeOut.Value & "&country=all&ssl=all&anonymity=all

all I had to add was "& tbTimeOut.Value & " to the timeout value.

that good you figure out your problem.