Visual Web Ripper Logo Visual Web Ripper Logo
Welcome Guest Search | Active Topics | Log In | Register

Tag as favorite
post processing script
dbraase
#1 Posted : Tuesday, July 19, 2011 7:22:59 PM
Groups: Registered
Joined: 3/27/2011
Posts: 9
Location: Iowa
anyone have an idea how to get the call to the php to work .... the rename works but the call does not execute ...

using System;
using mshtml;
using VisualWebRipper;
using System.IO;
using System.Net;
using System.Text;
using System.Diagnostics;



public class Script
{
//See help for a definition of WrPostprocessArguments.
public static bool Postprocess(WrPostprocessArguments args)
{
try
{
Debug.WriteLine("Message is written");

File.Copy("C:\\Users\\Debra\\Documents\\Visual Web Ripper\\Output\\Cayman_Islands_-_Point2\\Homes_List_data_1.csv", "C:\\Users\\Debra\\Documents\\Visual Web Ripper\\Output\\Cayman_Islands_-_Point2\\Cayman Islands - Point2.csv");

string myurl = "http://www.4nhomes.com//post_process_del.php?filename=Cayman Islands - Point2.csv&username=admin&userpassword=admin";

Console.WriteLine(myurl);

WebRequest my1request = HttpWebRequest.Create(myurl);

Console.WriteLine(my1request);

WebResponse my1response = my1request.GetResponse();

StreamReader my1reader = new StreamReader(my1response.GetResponseStream());

// string muurl = "http://www.4nhomes.com//post_process_add.php?filename=C:\\Users\\Debra\\Documents\\Visual Web Ripper\\Output\\Cayman_Islands_-_Point2\\Cayman Islands - Point2.csv&username=admin&userpassword=admin";
//
// WebRequest my2request = HttpWebRequest.Create(myurl);
//
// WebResponse my2response = my2request.GetResponse();
//
// StreamReader my2reader = new StreamReader(my2response.GetResponseStream());
return true;
}
catch(Exception exp)
{
args.WriteDebug(exp.Message);
return true;
}
}
}
Users browsing this topic
Guest (2)
Tag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.4 RC1 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.061 seconds.