Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Regular Uploading To Secure Server Using Asp


I have a directory (folder) in ISS 6.0 Web server. I need to upload to a secure server over an HTTPS connection. What is the best method to upload from this directory to a secure sever.

To access the server via a browser i have to type a password and username.
The file are Cxml files and need to be uploaded on a secure connection.(HTTPS)
I would need to run a schedule task every 2 minutes to check the directory for any files that are there.

What script or method should i use. Is there any particular sample script such as (ASP) i could use. I am sure this can be done in ASP...but does anyone know how.




View Complete Forum Thread with Replies

Related Forum Messages:
CDO Email From SSL Secure Server
I've built a survey and tested everything is working fine - except fo one problem, that i have been told MUST be fixed

I am using CDO.Message to send email message to the respondants of the survey - a lovely thank you message.

It is sending the emails fine to all email address i have tested, except for email address here where I work, and I have been unable to find a reason for this

the web scripts are running on a secure server (SSL certificate)
and all is working great except the email issue.

the actual code that is sending the emails works perfectly on non-secure server, and seems to be fina on the secure server except for the most important(apparently) email addresses.

Does anyone have any ideas why the scripts would not send to one set of email addresses, but seems to work for all other when on SSL, but works for ALL email address when not on SSL.

View Replies !
Connecting To Secure Server
Maybe I'm doing something wrong, but I'm having troubles with connecting using SSL.

I have a website at http://www.*****.com
I have a login form directly on that index page.
When you click sign in it directs to https://www.hostingcompany.com/******. However, it fails the first time, then it works the second time. The second time I am on the https://www.hostingcompany.com/****** page.

View Replies !
Are Server Variables Secure?
I'm working on a shopping cart page. In page A (checkout) the user
enters their credit card information. On postback, if everything is
correct, it sends the user to page B (confirmation). My question is,
can I (or should I) use server variables to send CC information to page
B?

My boss doesn't want me to store this information in the SQL
database we're using. Obviously cookies are out of the question and so
is passing info through request.querystring, so I was thinking on using
session variables for this, but not sure if it's safe.
What should I do?

View Replies !
Secure ASP And MySQL Database Server
How to secure MySQL Data with encript, any data to encript have ''' and MySQL send Error, how to protect ASP Data o encript the code ?

View Replies !
File Uploading To Server
Can you help me find an asp code that will upload a file from my PC to web server?

View Replies !
Uploading Csv File To SQL Server
I need to know the codes to upload my csv file (*csv) generated from Excel to SQL Server. I aso need to have the codes for uploading my CSV file to my access database..

View Replies !
Uploading CSV File To SQL Server
i need to know the codes to upload my csv file (*csv) generated from Excel to SQL Server. I aso need to have the codes for uploading my CSV file to my access database.

View Replies !
Uploading Images/Files To Server
Other than creating a custom component or purchasing one, isn't there
any other way by which users can upload images/files from their local
machines/hard disks to a remote server? Doesn't ASP have any in-built
component to do so?

If that's indeed the case, can someone suggest any free components
(not trial ones) which can be used to upload images/files from users'
local machines/hard disks to a server?

View Replies !
File Uploading Via A Webpage On A Mac To A Win2k Server
I was wondering if there are any known problems when using an apple macintosh to upload files and put text in a database via an ASP page that could cause either database error pages or simply some data not being written to the database. I have had this problem on a couple of sites now, and not been able to recreate the errors on my PC.

View Replies !
Uploading Test Asp Page With Sql Server 2000 Onto Webserver
I've been trying to create a test site - The site uses ASP with VBscript and talks to SQL Server 2000. I was able to complete and test it on my locally on my computer using Microsoft’s IIS 5.1. The website communicated fine with the database on the webserver/network server

However, when I tried to save the site from my local computer to the wwwroot folder in the server’s IIS hoping to make the internal site available to everyone here the resulting error comes up when we try to open a page with a recordset connected to the database: -

Our Error: -
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'AUMBSDDSSIUSR_AUMBCOMP'.
/mysite/htm/test2.asp, line 8

The page calls on an include file

Code: ....

View Replies !
Reading POP3 And Writing To SQL Server+uploading Attachements
I am looking for a system that will:

1. Read a message from a POP3 mailbox
2. Parse the message into its parts
3. Create a record in an SQL server table with selected fields of the message
4. Upload the attachements to the filesystem
5. Write the path of the attachements to the SQL server record

For security reasons, I want the process to be initiated and approved
by a user.

View Replies !
Secure And Non Secure Data
i have an ecommerce site that is split across two domains, a secure space that retains cc details and the main site where contact information and order details are held. I need to be able to produce a report that displays both sets of info in a printable document. aside from using iframes is there a better way of doing this?

View Replies !
Regular Expressions
I want to get the Structure within the 2 HTML Tags. I am not able to Get the regular expression for it. So here is the Code and could anyone give m ethe regular expression to get the HTML tags between the Code:

View Replies !
Regular Expressions In ASP
how to use Regular Expressions in ASP .

View Replies !
Regular Expression
Can anyone give me a regular expression for finding a URL in a string of
text?

Essentially what I want to do is find URLs in a text string and embed
them in {a href...} tags. However, I haven't used regular expressions
all that much in ASP/VBSCRIPT.

View Replies !
Regular Expression
I need to create a regular expression for a date field that works only
in the following format MM/DD/YYYY with the / in the format. No other
format can be inputted into the field. I need 2 numbers for MM 2
Numbers for DD and 4 numbers for YYYY. If the users enter 1 number for
month, 1 for day he should get an alert.

I have this code and thought it was working but it is not.

var RegExPattern = /(d{1,2})W(d{1,2})W(d{4})/;

View Replies !
Regular Expressions
Im trying to replace all occurences of a newline with a <br /> tag using regular expressions.

However, I only want to replace the newline with a <br /> tag if the newline does NOT come directly after an </h2> tag.

I cant seem to work out a regular expression to do this. So, for example.

This is an example line. You can see how it would work. would create

This is an example line.<br /><br />You can see how it would work.
and

<h2>The Heading</h2>
This is an example line.

You can see how it would work.
would create

<h2>The Heading</h2>This is an example line.<br /><br />You can see how it would work.

View Replies !
Regular Express
I have a reg exp pattern as below works fine for the string : <param name="url" value="contents/cf_intro.htm" valuetype="ref">

mObjRegExp.pattern="<param.+?value=""([^""]+)""

But the same is not working for

<param name="url" valuetype="ref" value="../fmmain/fmindex.htm"

note that, i want to capture the url that comes after value=". if the value=" comes in the second place in the html tag it works. but if it comes in the 3rd position, then it doesn't work.

View Replies !
Regular Expression
i know there are tutorials for Regular Expressions too, but can a 'simple' example be posted in these forms

View Replies !
Regular Expressions
I have been trying to run the example listed on MSDN to test a regular
expression. I'm running a win2k3 web server edition, WSH is version5.6.
I am getting an error everytime I run

Set RegEx = New RegExp

I have seen a few problems on MSDN with users not getting the right
permissions for some dll's so I went through the procedures trying to
correct that. I've seen the RegExp values in the registry. Even had a
friend of mine try the script on his machine. (mind you this comes
directly from MS) I cannot get New RegExp to work at all

View Replies !
Regular Expression
I'm going down the road of learing the pattern matching in regular
expressions, and I'm trying to convert the characters into English in my
head so I can see whats happening...

For clarity with this one...

[b]([^]]+)[/b]

Ok - the first thing I did was break it up - because it looks a nightmare
like that...so now I have..3 parts..

[b]

([^]]+)

[/b]

In part 1 I under stand that the is telling the expression that a special
character is coming next, thus escaping the [ and ] respectively, thus ,
and in part 3 I understand the same and also the escaping of the /, thus
- no problems so far...

In part 2 I'm assuming that the brackets are seperating a "pattern" so that
I might reference it as $1 later on, I understand that the [^] are saying
"not enclosed" so therefore it's going to ignore a ], the + sign however
perplexes me - my VBScript book says "Matches the preceeding character one
or more times" - so does that mean the ] just before it, or does it mean the
character OR characters defined within the [ ] etc?

View Replies !
Regular Expressions
I've got a page of text which I am assigning to a string. Within this
page there are special tags e.g. lots of text....<ti>dogs</ti>..lots
more text....<ti>this is a cat</ti> etc.. So I've got a long string
interspersed with these tags. Now what I need to do is get a list of
the words/phrases that are within these tags. So in my list I would
get dogs, this is a cat etc..

I've tried a combination of mid, instr and replace and got it sort of
working but there's got to be a more efficient way of doing it.
Possibly using regular expressions?

View Replies !
Regular Expression Example
looking for a regular expression example for asp in vbscript. just want to search for a name in some text, possibly display that text.

View Replies !
Regular Expression
I'm trying to find a regular expression function to strip contents out of a string which lie between square brackets [].I've got one for chevrons (to remove HTML - as below), but would prefer not to have to replace the chevrons for square brackets first.Code:

function funRemoveHTML( strText )
Dim RegEx
Set RegEx = New RegExp

RegEx.Pattern = "<[^>]*>"
RegEx.Global = True

funRemoveHTML = RegEx.Replace(strText, "")
end function
how I can modify this for square brackets as opposed to chevrons?

View Replies !
Regular Expression For URL
I am working on an ASP page which looks in a set of text for web page URLs.

Using the VBScript.RegExp regular expression object, I have this regular
expression:

[a-z]+.[a-z]+.[a-z]+/

And it works well finding URL's such as: windowsupdate.microsoft.com,
www.cnn.com, etc.

However, I have been trying to modify it to ALSO find URL's like this:

www.amazon.com/index/sell/ie6.html?val=1
Or
www.microsoft.com/windowsxp

Any ideas?

View Replies !
Regular Expression
I'm making url's out of text starting with "www" etc. but I've got two problems. Firstly, if the string begins with www it doesn't get matched, and secondly, if there's a dot or a comma directly after the url, it becomes part of the url. I hope someone who is better at this than me will be able to help me out. Code:

reg.Pattern = "(s)(www)(S)(S+)"
s = reg.Replace(s, "$1<a href=""http://$2$3$4"" target=""_blank"">$2$3$4</a>")

View Replies !
Understanding Regular Expression
I have been using a regular expression that I don’t uite understand to
filter the valid email address. My regular expression is as follows:

<asp:RegularExpressionValidator id="valValidEmail"
runat="server"
ControlToValidate="txtEmail"

ValidationExpression="^([_a-z0-9-]+)(.[_a-z0-9-]+)*@([a-z0-9-]+)(.[a-z0-9-]+)*(.[a-z]{2,4})$"
ErrorMessage="Invalid Email address."
Display="None">
</asp:RegularExpressionValidator>

Can someone explain me why the email address Join Bytes! is
considered an invalid email address?

Also can someone explain me what the above regular expression means?

View Replies !
Regular Expressions In Fso.DeleteFile
Can I use regexps in fso.DeleteFile? I've found I can use a '?' and probably a '*' (although that seems a tad brutal) but I'm having trouble with expressions like ([a-z]|[0-9]-).

Am I wasting my time trying to get it to work (i.e. does it support them?) If so, how do I use them? Does it have its own quirky syntax or "standard" regexp? Every example I've found so far just mentions deleting something simple like *.txt.

For the record, I need to "tidy up" a directory full of images by deleting files whose names _don't_ contain particular text. It's quite convoluted and would be far easier if I could just go through each file one by one but hey. Here are the details:

1) I have a list of IDs in an array that I've read from a data source. This is the "current ID" list

2) I have a list of image filenames from a directory in another array. The image filenames contain an ID in them. There could be none, one or more images containing the same ID.

3) I look at each file in turn, extract the ID portion and add it to an array of "found" IDs - crucially, this array is only updated if the ID has not been seen before in another filename

4) I then step through this array and use Filter() to see if the ID is in the "current ID" list somewhere

5) If it is missing from the list, that ID is deemed "out of date" and all associated images containing that ID need to be deleted. Message to screen saying that ID has been deleted.

6) If it is in the list, just print a message saying it is "current" and move on.

I realise I could just step through each file and test it against the current ID list but then the output on-screen would be file-by-file and not ID-by-ID. The client doesn't care how many files there are; they don't even care about the underlying structure - they just point the browser to my script and it deletes the files, shows them which IDs have been removed and tells them how many IDs in total have been deleted.

If I went down that route I would have to keep a record of which IDs I've deleted and output the lot at the end instead of 1 by 1 as I go, which leaves the browser hanging for a while and doesn't give the client reassuring feedback as it ploughs through the directory adding the results to the screen row by row. Code:

View Replies !
Regular Expression Syntax..
I need to parse the following:

aaa_bbb_d_yyyy_mm.ext

aaa = ITM, CPF, FAC, GEN
bbb = almost anything (even more then 3 chars)
d = M,Q,Y,R
yyyy = year
mm = month

I'm terrible at figuring out regexp so I turn to the kind folk of SP

View Replies !
Regular Expression Problems
I have a field that should take a date in the following two formats:

MM/DD/YYYY or MM/DD (and assume it is this year, it will fill in current year)

I have my program checking against two regular expressions. The first one is ok:

Dim regEx
Set regEx = New RegEx

regEx.Pattern = "^(([1-9])|10|11|12)/(([1-9])|((1|2)[0-9])|30|31)/200[0-9]"

If the date checked comes up False, it then goes to this expression:

regEx.Pattern = "^((0[1-9])|(10|11|12))/((0[1-9])|((1|2)[0-9])|30|31)"

My problem is on the second one. If I enter an erroneous date like this: 11/189

It will go through and crash my program.

View Replies !
Problem With Regular Expression
I am using regular expression to replace the text, This is asp function I have used to replace the text, but it’s not working properly Code:

View Replies !
Regular Expression :: Replace
addContent = replace(addContent,"<font>","")

Right, pretty simple eh!

However, what I need is something to say replace all occurence of strings that start with "<font" to eb replaced by zilch i.e.

<font>
<font color=green>
<font tag=this another=more>

I believe regular expression are the way to go?

View Replies !
Regular Expression :: AlphaNumeric Only
any one have a quick regex for making sure that only 0..9 a..f are in a string?

View Replies !
Regular Expression :: Object
I'm trying to return a sub string using the regular expression object. I've not really used the regular expression object before and I'm finding it a bit clunky to use.

Basically I'm trying to match the 'description' within the string 'file_description_1'

However I'm unsure how to return the partial, would I use the Execute or Replace methods?

Regex looks like this:

With RegularExpressionObject
.Pattern = "file_(.*?)_[0-9]"
.IgnoreCase = False
.Global = True
End With

View Replies !
Secure
How do I stop pages being active in the history.
I have tried this,

<% Response.Expires = -1 %>

But the pages are still active in the history and are being cached somewhere on the machine win2k.

View Replies !
Secure
If I create a simple login page and then store the UserId is a session and check its validity in the subsequent pages, How secure will the site be. I know the same question has been asked in the PHP forum

Code:
http://www.sitepoint.com/forums/showthread.php?t=233118
But how can I make my site secure enough in asp

View Replies !
Secure
I may be in over my head on this one... VERY new to ASP. I have a potential client which is a marine loan broker. He wants an online credit application for the boat dealers he works with (20 different ones). He wants the credit app to be co-branded. Dealer/LoanCompany logos at the top would be sufficent. The dealer would have a link on there own site to the loan company's site but wants it to look like they are "Partners" and not just being shullde from one site to the next.

Is there a way to display different dealer logos based on the referrer URL? I would rather have one creditapp.asp that displays the proper logos depending on the referrer over building 20 creditapp.asp's. He doesn't need the form data written to a database. He just wants the form data emailed to him. (this I can do) How secure is that emailed data?

View Replies !
Secure FTP With ASP?
Right now, I'm trying to use WSH to run PSCP (command-line version of
PuTTY). I've tested the command I'm using by opening a DOS box
manually on the server, and the test file is successfully transferred.
I've run Filemon and Regmon while running my sample ASP page, and see
no permissions problems. I've tried running cmd.exe and passing PSCP
as the parameter.

I've tried running PSCP.exe directly. I've even
tried using ASPexec to run it instead of WSH. None of these have
worked. I always get the same thing -- error code 0 (success) returned
from WSH or ASPexec, but when I look at the second server the file
never got there, and when I look at terminal services on the Web server
PSCP is still running.

View Replies !
Inserting A Footer At A Regular Inteval
If I have a set of documents on a letterhead with a header and footer and I
want them in HTML look as they look on the paper - i.e. if a document is
longer then one printed page, the footer and then the header are inserted -
how do I do it in ASP?

I.e. is there a way to monitor page length depending on font, margins and
perhaps graphic used?

View Replies !
Regular Expressions & Replace Method
Problem: I want to check the data from a RecordSet.GetString result for today's date. If today's date exists in the row then I want to replace the preceeding <tr> tag with a <tr style='background:grey'>. I made the following objRegExp.Pattern:

.Pattern= "<tr><td><font size='1'>[w]*</font></td><td><font size='1'>[w]*</font></td><td><font size='1'>" & FormatDateTime(now(),vbShortDate)

This successfully identifies the row as containing today's date. Yea! Now, the replace part.

text = objRegExp.Replace(text,"<tr style='background:grey'><td><font size='1'></font></td><td><font size='1'></font></td><td><font size='1'>" & FormatDateTime(now(),vbShortDate))

This piece works except I lose the data that was actually contained in each cell. How can I have it so that the only thing that gets replaced is the table row tag?

View Replies !
Regular Expressions To Find URL's In Text
I am working on an ASP page that parses text using the VBScript.RegExp
regular expression object. My reg expression right now is as follows:

[a-z]+.[a-z]+.[a-z]+/

And if find URL's no problem like: windowsupdate.microsoft.com,
www.cnn.com, etc.

But I need to also find any URL, like these:

www.amazon.com/books/atoz/index.html
OR
msdn.microsoft.com/newsgroups/default.aspx

Some URL with a deeper path than something.something.com if that makes
sense. Any ideas?

View Replies !
VBScript Regular Expression Object
I've discovered an insidious bug with the VBScript Regular Expression
object.I set the pattern to consist of the set of invalid filename
characters plus comma. I set global property to true then do a replace on a
SID. The Replace does nothing. However, if I attach the C++ (dev studio
2003) debugger to the IIS host process (dllhost.exe), every time I call
RegExp.Replace, the stack for one of the process's threads gets scrambled.
It ends up with the value 0x00000001 at the top of the stack! If your
debugger is set to stop on access violations, it always catches one (invalid
read trying to delete). The problem is insidious because, without the
debugger running, you would never know this is happening. ASP returns no
error. Potentially this could wreak havoc on your web application and cause
bizarre failures later on. Has anyone else run into this one? It seems to
happen only with the Replace method.

View Replies !
Regular Expression In Scripting Engine 5.1
I need a regex pattern that will grab a select or textarea tag in an HTML file. If I run
the pattern I should get:

<select name="whatever">
<option value="a" selected>A</option>
<option value="b">B</option>
<option value="c">C</option>
</select>

Or

<textarea name="whatever">Here is some text area text</textarea>

I know the following pattern works:

<(select|textarea).*(.|
)*?</(select|textarea)>

But the problem is my web hosting company is using ASP scripting engine 5.1 which does not support the non greedy delimiter (?). I doubt they are going to upgrade to 5.5 anytime soon.

I'll appreciate it if anyone can give me a pattern that does the same job but does not use the ? delimiter. Is there a way I can tweak the pattern above so that it works in ASP scripting engine 5.1?

View Replies !
Difference Between ASP-output And Regular HTML
If I'm correct, an ASp-page output is plain HTML to the browser? Is this correct ?

So if this is the case then the browser should see no difference between a normal HTML-page and an ASP-page which has a HTML-output?

The reason why I'm asking this, is because of a problem that I'm having with a script which is working fine on a htmlpage but not on a asp-page although I can't see the difference between the normal html-page and the asp-page output in formatting.

View Replies !
Regular Expression :: Pick Out SQL Statement
I'm trying to work out a reg.exp. that will pick out a sql statement against a certain set of tables - in this case any table named "Survey~something~", but I only want to pull back those statements where the CompanyID column doesn't appear in the query. (The expression is being used in my editor so it might appear a little strange, but by and large it works the same as you'd expect.)

[^']select(.){0,100}from(.){0,100}Survey(.){0,25}where (.){0,200}

What do I need to add so that I get those without a companyid column?
Something like...

[^']select(.){0,100}from(.){0,100}Survey(.){0,25}where (.){0,200}(^companyid)

(tried this one, but it doesn't work)

View Replies !
Replacing Words Regular Expression
I have a search results page that lists a series of records with clickable links to view the records. When you click on the link to the record, the record id, the search terms used, and the search type (exactphrase or anywords) is sent through the query string.

On the record page I have been trying to find a regular expression that would find and replace the search terms with < strong >< /strong > to highlight them. I am struggling.

Does any use a similar regular expression. One that, if flagged, will replace an exact string (phrase) or loop through an array replacing any of the words in the string?

View Replies !
Regular Expression :: Extract Links
here is a pattern I am using in regexp module:
href(.*?)[x22>][^x22]*x22

This string seems to work in that it will return
href = "http://www.domain.com"

from href tags such as this.
<a href = "http://www.domain.com">This is a link</a>

it handles the spaces that may exist before and after equal sign. (basically I am trying to extract links out of my url)

is there a way I can take this pattern a bit further to return just the http://www.domain.com

I am new to regexp but have managed to get this far.

View Replies !
Regular Expression :: Wrapper Function
I'm trying to write a function to return submatches. I want to do this because I want to run a match on matches of matches of yet other matches, so it seemed to me it would be easier to work with if there was one line of code that would return a collection or array of matches. Here's what I got:

<%
Dim objRegExp
Set objRegExp = New RegExp
Dim objMatches, objMatch

Set submatches = getsubmatches("this should hopefully match and print
eight words", "(w)", TRUE, TRUE)

For i = 0 To submatches.Count - 1
response.write "<br>" & submatches(i)
Next


Function getsubmatches(strText, pattern, isGlobal, ignoreCase)
Dim data

'Set our pattern
objRegExp.Pattern = pattern
objRegExp.IgnoreCase = ignoreCase
objRegExp.Global = isGlobal

For Each objMatch in objRegExp.Execute(strText)
getsubmatches = objMatch.SubMatches
Next
End Function

%>

I get:
Microsoft VBScript runtime (0x800A01C2)
Wrong number of arguments or invalid property assignment
/getsubmatches.asp, line 22

thats this line: "getsubmatches = objMatch.SubMatches"

Can anyone help me write this correctly?

View Replies !
Regular Expression :: Delete Characters
eg: AAA, BBB, CCC (3 items) in the lists.

i would like to remove BBB and make it become AAA, CCC

anyone know how i can do it in regular expression?

it is possible to remove 1st, or 3rd items. but only all items inside is identical. and only remove single item.

View Replies !
Regular Expressions :: Take Out Money Amounts
What regular expression would I use to take out all of the money (US amounts) from a string?

Right now I have:

Code:
Set RegularExpressionObject = New RegExp
With RegularExpressionObject
.Pattern = "$(.*)"
.IgnoreCase = True
.Global = True
End With
xmlText = RegularExpressionObject.Replace(xmlText,"")

Set RegularExpressionObject = Nothing

which obeously doesn't work. What should I use for:

.Pattern = "$(.*)"

??

View Replies !
Regular Expression :: Phone Numbers
If I want my phone number like this...

(XXX)XXX-XXXX

([0-9]{3})[0-9]{3}-[0-9]{4} ....

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved