Jump to content

How to pass Info


thetylercox

Recommended Posts

I thought this post belonged here because I am not looking for an exact answer rather a general direction to look!

I'm trying to fill out a webpage form based on info I have. The form is not mine. To explain I'm trying to place an order from company A @ www.companyA.com/form with info I have in my company B database. I dont want to use any third party Software for this and I don't have access to the info the Company A is using to store the form info.

 

Thanks in advance.

Link to comment
Share on other sites

Ideally you should contact companyA and see if they have, or could setup, some method of automated ordering for you.  auto-populate a form and submit it could vary anywhere from easy to difficult depending on how their form works, and will likely break if they ever change the form.

 

The simplest method of auto-submitting a form is generally just to see what the request is when you submit the form, and then duplicate that in your code.  So if for example it had three fields: itemId, itemQty, and btnSubmit and the form was submitted via the POST method, you would just generate a http request that looks like:

POST /form HTTP/1.1
Host: companyA.com
Content-type: application/x-www-form-urlencoded
Content-length: 43

itemId=1234&itemQty=2&btnSubmit=Place+Order

 

Depending on what kind of protections companyA has on their form, you may need to create a script more complex than that.

 

If your not already familiar with it, you should do some reading on how the HTTP protocol works, and also how form data is submitted/processed.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.