Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Submit data & Grab an element by ID using httpwebrequest?

hello everyone! I need help with vb programming.

What I want to do is enter data to a text area in a webpage & grab it's output from another text area using IDs. I know how to do this with WebBrowser Control in VB, but I really want to try this with httpwebrequest. Please help me.

https://msdn.microsoft.com/en-us/library....110).aspx
With webrequests you just get the page source. Find out what requests are sent, using Fiddler or Charles, and mimic them in VB.net and then read the response and parse the information you want (Html parsing, string splitting, regex, json deserializing, whatever).
Use webrequest to get Post data and Regex for grabbing the ID
(Feb 22, 2016 11:28 AM)Nikola Тesla Wrote:  Use webrequest to get Post data and Regex for grabbing the ID

Use webrequest to get post data...? What?
And regex is probably the worst for grabbing the ID.
(Feb 22, 2016 11:45 AM)Ninja Wrote:  Use webrequest to get post data...? What?
And regex is probably the worst for grabbing the ID.

Sorry thought he wants to send post to server , but why is regex worst for grabbing ID? what you suggest?
(Feb 22, 2016 11:52 AM)Nikola Тesla Wrote:  Sorry thought he wants to send post to server , but why is regex worst for grabbing ID? what you suggest?

Depends on the response, but string splitting would be fine.
Also, you dont get post data. You post post data.
string splitting sucks ass for parsing data from a html document
(Feb 22, 2016 01:10 PM)+Haze Wrote:  string splitting sucks ass for parsing data from a html document

If it is one value you need then its perfectly fine.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by roosiinfidel09Aug 19, 2021 07:32 AM 1 173 Aug 19, 2021 07:32 AM
Last Post: john__john
[C#] by HardStoNMay 2, 2021 12:59 AM 5 269 May 2, 2021 12:59 AM
Last Post: vaiperboy
[.NET] by requiredhqMar 15, 2021 07:31 AM 2 179 Mar 15, 2021 07:31 AM
Last Post: The