HTTP Header Question

Hello EE,

Is it possible to read the value of a POST Header Entity Response Body value ?
in other words, If I have an Entity  Content-Length : 56

how can I know its value ? I know its the length, but how can I see what is it? doesnt matter if its ASCII or something else to me

another question attached to this is, if I know its value, is it possible to achieve the same results with a Querystring after ?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
The simple answer is:

The .Net version of $_GET[] is :


The .Net version of $_POST[] is :


Frameworks that are available with .NET hide these under other functions.
kaufmed   ( ⚆ _ ⚆ )Commented:
Can you explain more about the problem you are trying to solve?
PhilippeRenaudAuthor Commented:
YEs alright Kaufmed :

in Fiddler4 software, I see that whenever I type something in a Textbox, I see a Link (no querystring) doing a POST with a response body of the name "textValue"  and value : whatever I typed..

I want to be more efficiant for the job I have to do and I would like to "post" stuff without me going to type every hour myself.
I want my to do the same thing. So I was trying to understand what to do as a POST to achieve the same thing as If I was typing on the keyboard on that textbox
Get Blueprints for Increased Customer Retention

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Dave BaldwinFixer of ProblemsCommented:
In the web, HTML forms are used to 'POST' data to a server.  The only common method for 'POST'ing is to use cURL.  PHP has it's own built-in cURL extension, I don't know if .NET has such a thing.  More info here:
Dave BaldwinFixer of ProblemsCommented:
Actually, you can use jQuery in an HTML page to post data from a form page.  You might be able to use that to do it programmatically.
kaufmed   ( ⚆ _ ⚆ )Commented:
If you are simply trying to programmatically post data to a web server, then you would use either the HttpClient our WebClient classes. The former is preferred over the latter.
Dave BaldwinFixer of ProblemsCommented:
kaufmed   ( ⚆ _ ⚆ )Commented:
Yep. I was on my phone at the time, so I that's why I didn't link it   = )
PhilippeRenaudAuthor Commented:
If I get an error like this :

The remote server returned an error: (403) Forbidden.

on a line :

Dim responseLoginToPage1 As HttpWebResponse = DirectCast(requestLoginToPage1.GetResponse(), HttpWebResponse)

Open in new window

is it possible im just not allowed to do this or maybe its something else I could do wrong ?
kaufmed   ( ⚆ _ ⚆ )Commented:
Confirm whether or not SSL is enabled for that service. If it is, make sure you're sending your request as HTTPS in the URL.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.