By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,131 Members | 1,494 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,131 IT Pros & Developers. It's quick & easy.

Question about posting data from one page to another page

P: n/a
ejs
Please read the entire reponse, hopefully this clears up your questions.

The data used that needs to go into the batchupload page comes from a
server. My problem is that currently I write a file to the server and then
the user has to pick this file and send it up to the batchupload page. The
batchupload page is not one of our page, instead it is another company's
page. This is there interface to do batch processing. We have no control
over it. We just call this page "batchupload" with a file and other
parameters. I am attempting to call the page "batchupload" and send fill in
the parameters with out first creating the file. Is this possible? Do you
understand our problem.

First batchupload is a page from another company. It is used for their
batch processing. Request parameters include a file <html input type=file> -
does this have to be a file or some other data stream stored on the page and
then sent over to this page?

The html page I sent you would be a page that was written for us to
communicate with the batchupload page. I can hard code all of the other
parameters except for the input type=file. Instead of writing out a file, I
would like to buffer the file data into an asp.net page and then just send
all of the information at once over to the "batchupload" page.

I know that I can use
httpppost(http://www.othercompany.com/batchupload?batchid='123'&programnumber='ABC'&xml= ?????????)
How do I specify the xml, since this variable is a file. What has to be in
the data stream of xml, so that it appears to be a file, but is actually a
character string?

Hopefully this clears up the confusion.

Thanks

Eric
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
they are probably expecting multipart/form-data rather than urlencoded form
data. look up email mime type support.

the header is:

Contexttype=multipart/form-data;
boundary=--------------------boundary----------------

form fields are:

--------------------boundary----------------<lf>
Content-Disposition: form-data; name="fieldname"<lf>
<lf>
data<lf>

--------------------boundary----------------<lf>

the file if its xml will be:

--------------------boundary----------------<lf>
Content-Disposition: form-data; name="fname"; filename="C:\log.xml"
Content-Type: text/xml <lf>
<lf>
<myxml/><lf>
--------------------boundary----------------<lf>

where <lf> is the linefeed char

-- bruce (sqlwork.com)
"ejs" <ej*@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
| Please read the entire reponse, hopefully this clears up your questions.
|
| The data used that needs to go into the batchupload page comes from a
| server. My problem is that currently I write a file to the server and
then
| the user has to pick this file and send it up to the batchupload page.
The
| batchupload page is not one of our page, instead it is another company's
| page. This is there interface to do batch processing. We have no control
| over it. We just call this page "batchupload" with a file and other
| parameters. I am attempting to call the page "batchupload" and send fill
in
| the parameters with out first creating the file. Is this possible? Do
you
| understand our problem.
|
| First batchupload is a page from another company. It is used for their
| batch processing. Request parameters include a file <html input
type=file> -
| does this have to be a file or some other data stream stored on the page
and
| then sent over to this page?
|
| The html page I sent you would be a page that was written for us to
| communicate with the batchupload page. I can hard code all of the other
| parameters except for the input type=file. Instead of writing out a file,
I
| would like to buffer the file data into an asp.net page and then just send
| all of the information at once over to the "batchupload" page.
|
| I know that I can use
|
httpppost(http://www.othercompany.com/batchupload?batchid='123'&programnumbe
r='ABC'&xml=?????????)
| How do I specify the xml, since this variable is a file. What has to be
in
| the data stream of xml, so that it appears to be a file, but is actually a
| character string?
|
| Hopefully this clears up the confusion.
|
| Thanks
|
| Eric
|
|
Nov 18 '05 #2

P: n/a
ejs
Do you mean, that the xml variable =
"Content-Disposition: form-data; name='fname'; filename='C:\log.xml'
Content-Type: text/xml <lf>
<lf>
<myxml/><lf>"

Eric
"bruce barker" wrote:
they are probably expecting multipart/form-data rather than urlencoded form
data. look up email mime type support.

the header is:

Contexttype=multipart/form-data;
boundary=--------------------boundary----------------

form fields are:

--------------------boundary----------------<lf>
Content-Disposition: form-data; name="fieldname"<lf>
<lf>
data<lf>

--------------------boundary----------------<lf>

the file if its xml will be:

--------------------boundary----------------<lf>
Content-Disposition: form-data; name="fname"; filename="C:\log.xml"
Content-Type: text/xml <lf>
<lf>
<myxml/><lf>
--------------------boundary----------------<lf>

where <lf> is the linefeed char

-- bruce (sqlwork.com)
"ejs" <ej*@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
| Please read the entire reponse, hopefully this clears up your questions.
|
| The data used that needs to go into the batchupload page comes from a
| server. My problem is that currently I write a file to the server and
then
| the user has to pick this file and send it up to the batchupload page.
The
| batchupload page is not one of our page, instead it is another company's
| page. This is there interface to do batch processing. We have no control
| over it. We just call this page "batchupload" with a file and other
| parameters. I am attempting to call the page "batchupload" and send fill
in
| the parameters with out first creating the file. Is this possible? Do
you
| understand our problem.
|
| First batchupload is a page from another company. It is used for their
| batch processing. Request parameters include a file <html input
type=file> -
| does this have to be a file or some other data stream stored on the page
and
| then sent over to this page?
|
| The html page I sent you would be a page that was written for us to
| communicate with the batchupload page. I can hard code all of the other
| parameters except for the input type=file. Instead of writing out a file,
I
| would like to buffer the file data into an asp.net page and then just send
| all of the information at once over to the "batchupload" page.
|
| I know that I can use
|
httpppost(http://www.othercompany.com/batchupload?batchid='123'&programnumbe
r='ABC'&xml=?????????)
| How do I specify the xml, since this variable is a file. What has to be
in
| the data stream of xml, so that it appears to be a file, but is actually a
| character string?
|
| Hopefully this clears up the confusion.
|
| Thanks
|
| Eric
|
|

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.