Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Our products have published a web page. This is a sectoral ads web site. We have a paid membership on this site. We publish hundreds of

products on this site. we are paying to this web site for our publishings.

We have a program and database and it contains our all products. From this database we want to send our products and data's automaticly

to the website.
We speak to this website authority but they say "we havent got web service, sorry we dont do anything about it".

And after that we prepare a software like autofill form. Without pictures we sent all of the data's. we sent data's succesfully to the

website but only we cant send pictures.

i want in the following commands;

In the c# webbrowser will automatically click the browse button with using x,y coordinate in a flash object. When click it automatically

open a "open dialog".

And this "opened dialog" makes automatic picture selection.

But it doesnt makes automatic selection in flash object.

i want to send my pictures and datas from my database to a web site automaticly.
i send my datas succesfully. but idont send the pictures. because of flash open
dialog box problem



what i should do for it?
Posted

1 solution

Forget the WebBrowser control for this kind of application. You dont need to automate the browser, or any plugin. In the background there is always http traffic. You should familiarize with http protocol[^] concepts, and than trace the actual conversation between your browser and the application on the server. You can use tools like Fiddler[^]. You will find a series of GET and POST (or other verbs) requests from client side. You can figure out how data entered by you is sent to the server, what url is called, what fields are populated. You can simply send (upload) images also. You can use the HttpClient[^] class for that. Keep in mind, that you don't have to automate the browser, you have to simulate the browser and the user actions on a lower level. If you do it right the server will see no difference. It is really not complicated.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900