Loading ...

Posting to third party PHP form?

Who is online?  0 guests and 1 members
home  »  forums   »  asp.net topics   »  data access   » Posting to third party PHP form?

Posting to third party PHP form?

Posts under the topic: Posting to third party PHP form?

Posted: 7/30/2011

Lurker 45  points  Lurker
  • Joined on: 7/28/2011
  • Posts: 5
Hi everyone,

I am writing a windows application (windows forms) to recreate some search requests to third party
websites. These sites allow me to search for cars with the given car name, model year, etc. The websites
that use url encoded parameters are easy to implement.

A few of the sites however do NOT use url encoded parameters, meaning the url remains fixed nomatter
what search values I set in the page fields.

In order to recreate this search, I tried using http POST using querystrings and namevaluecollection pairs
using the names/ids of their controls without result. I examined the cookies the site has stored for the search
parameters without luck too. I was not able to examine Session variables since this does not exist in windows apps.

After viewing the source of the search page, I reached to the definition of the php form which is responsible
for the post.

<form name="form2" method="post" action="auto_trform.php">

And within this form are the definitions of the controls you use to set search parameters.

<input name="select_year1" type="text" class="champsimple" id="year1" size="4" maxlength="4">
<p class="intitulesep">Prix maximum<br>
<input type="text" name="select_prix" maxlength="8" class="champlarge">

I wish to post to this form after setting the values of these fields, recreating what the browser is doing exactly. 
Thank you for your time guys it is really appreciated.
Best Regards
James

Posted: 8/3/2011

Lurker 45  points  Lurker
  • Joined on: 7/28/2011
  • Posts: 5

Hello Everyone,

Please know that the issue above has been bothering me for more than a week now and I would appreciate any help or pointers you could give me in the matter.

If I am being off-topic and this is why answers are not being posted then kindly direct me to the correct place where such a question should be posted.

Regards,
Jacob


Page 1 of 1 (2 items)