login about faq

I’ve been using the control for SOAP communications and it works great.

Now the company I’m interfacing with wants me to expand the application to fetch their website .aspx in a browser using a query string or post (see below) and process the response. This is totally new territory for me. Can this be done within the HTTP control?

Query String



<form id="Form1" method="post" action="https://test.something.com/xyz/abc.aspx">
        <input type="text" name="key" id="xkey" value="111111-22222-33333" />
        <input type="submit" value="Submit" />

asked Mar 02 '14 at 22:55

chilkat's gravatar image

chilkat ♦♦

Yes, this is very simple. To send a GET and get the response, just use QuickGetStr:

string responseBody = http.QuickGetStr("https://test.something.com/xyz/abc.aspx?key=111111-22222-33333");
This will automatically use SSL/TLS because of the "https://" in the URL.

You may instead send a POST (equivalent to the FORM above) like this:

Chilkat.HttpRequest req = new Chilkat.HttpRequest();


Chilkat.HttpResponse resp = null; resp = http.PostUrlEncoded("https://test.something.com/xyz/abc.aspx",req); if (resp == null ) { textBox1.Text += http.LastErrorText + "rn"; return; }

string reponseBody = resp.BodyStr;


answered Mar 02 '14 at 22:59

chilkat's gravatar image

chilkat ♦♦

This doesn't invoke the default browser does it? That is what I need to do, pop up the web page, fill out the web form and return the html.


answered Mar 03 '14 at 10:20

Dick%20Crich's gravatar image

Dick Crich

Chilkat does not involve the default browser. It sounds like you need to embed a web browser into your app, and for that you would use what Microsoft provides, assuming you're using C#, VB.NET, etc.

Google "c# webbrowser"

(Mar 03 '14 at 10:24) chilkat ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Mar 02 '14 at 22:55

Seen: 3,421 times

Last updated: Mar 03 '14 at 10:24

powered by OSQA