Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / February 2008

Tip: Looking for answers? Try searching our database.

Website data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vivien Parlat - 28 Jan 2008 09:48 GMT
Hello,

Sorry for my previous message in french... Here it is in (bad)
english:

For my own use I'm trying to make an app which takes two cities
(origin, destination) and two times (departure, arrival), fills in
form at http://www.voyages-sncf.com/dynamic/comm.travel?ORIGIN_CITY=Paris&DESTINATION_CI
TY=Toulouse
,
and retrieves data, to display to me all possibilities in a day, and
best prices for travels (making this by hand is boring).

My problem is, I can't even get the first result page. Going to above
URL loads in a browser, a page which has a different URL. Looks like
there are many redirections. However when I load this page, (I use
wrapper at http://www.west-wind.com/presentations/dotnetWebRequest/dotnetWebRequest.htm),
I can get the form source, totally empty. I try to post data (minimal,
then more complete), but the response page seems to be a redirection,
to an error page, or to the same form...

Maybe I don't post enough data (as defaulted pieces of data ?) but no
message tells me that, and I don't know how to spy, in a browser nor a
WebBrowser object, which data are POSTed and GET... (this could be
useful)

I yet saw a post on a near subject  (http://
groups.google.com/group/microsoft.public.fr.dotnet.csharp/
browse_thread/thread/f8fb4e8ea3757e66/d8cbc3ab6ecbcccf?lnk=st&q=r
%C3%A9cup%C3%A9rer+infos+sur+un+site+c%23#d8cbc3ab6ecbcccf) but my
problems looks more complicated.

Any help would be appreciated...

Thanks in advance.
Nicholas Paldino [.NET/C# MVP] - 28 Jan 2008 15:48 GMT
Vivien,

   More than likely, the server is checking for things like cookies, the
user agent string, and doing a whole lot of redirections.  You can mimic
this with the HttpWebRequest/HttpWebResponse classes, but you have to do it
like a browser does.

   You should look for a tool called "Fiddler".  It is an HTTP
request/response interceptor, and it is free.  It will help you determine
the exchange pattern for the site.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Hello,
>
[quoted text clipped - 31 lines]
>
> Thanks in advance.
Vivien Parlat - 11 Feb 2008 14:22 GMT
On 28 jan, 16:48, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
> Vivien,
>
[quoted text clipped - 46 lines]
>
> > Thanks in advance.

Thank you. I was looking for a tool such as Fiddler, without finding
it.
I can now retrieve the webpage to analyze using a hidden WebBrowser
navigating to the good forged url, redirections seem unavoidable, and
I cannot re-create a webbrowser... This makes my program very slow,
but in one direction it works :)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.