Solved

Click on hyperlink on different website

Posted on 2014-09-12
1
254 Views
Last Modified: 2014-09-29
I am building a website to interface with our software. However it currently has a dreadful cloud based website that I need to utilize to submit information to our software.

I know I can use the POST in order to login to the site and hopefully fill in the blanks and submit it . However one issue I have.

When you login it gives you hyperlinks for different accounts that are available.

Is there a way to have my website click a hyperlink based on description and load the next page for me to POST data into the fields?

I am very curious some code samples will be nice as well.

WebsiteA(my website) -->logs into WebsiteB(other vendor)-->WebsiteA clicks hyperlink for property that has 2000 bob st. in its description.

WebsiteB opens the file and Website A POSTS data to that site.
0
Comment
Question by:desiredforsome
1 Comment
 
LVL 42

Accepted Solution

by:
Rob Jurd, EE MVE earned 500 total points
ID: 40320474
Firstly I'm not a .NET programmer so I can't give you any definitive code samples but I can guide you through how you need to do this.

IMHO, the best way to do this is add a "middle man" on your server that takes requests from your clients on Website A and does the required actions on Website B and returns the results to Website A.

Due to security restrictions, your clients cannot access Website B from A directly and require this middle man (don't even go there with iframes).

The forms on Website B will have an associated URL that the data is posted to.  By opening your developer tools and having the Network tab open, you'll see what data is sent when submitting whatever form on Website B.

So now you have a URL and the required data that needs to be sent to website B to perform the required action.

On your server (Website A) you now send and receive data to those URLs and pass it back to your clients on A.  PHP uses CuRL to achieve this but I'm pretty sure .NET has inbuilt tools that can load / post data from external sites.

Your clients need only to fill out the minimum fields that in conjunction with other required data and sent onward to Website B and back again via your server (the middle man)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now