473,320 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Web Query String

Hello All,

I'm trying to replicate a request to a web browser request (actual
domain is changed :D)

http://www.philip.com/phils.cfm?num_...F%23%3DH%20%0A
So far I can post to the above address, but I can't reverse engineer
the query string.

num_ent=%25%22%24%5B%5F%23%3DH%20%0A
This is my code, but I think I'm trying to encode an encoded string?
Byte[] d = System.Text.Encoding.ASCII.GetBytes("num_ent=%25%2 2%24%5B%5F
%23%3DH%20%0A
");
Byte[] res = web.UploadData("http://myweb.com/phils.cfm", "POST", d);
Any ideas how to replicate the top request?

Jun 22 '07 #1
3 2560
string sText =Server.UrlDecode(Request.QueryString["num_ent"]);

-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"ph*************@googlemail.com" wrote:
Hello All,

I'm trying to replicate a request to a web browser request (actual
domain is changed :D)

http://www.philip.com/phils.cfm?num_...F%23%3DH%20%0A
So far I can post to the above address, but I can't reverse engineer
the query string.

num_ent=%25%22%24%5B%5F%23%3DH%20%0A
This is my code, but I think I'm trying to encode an encoded string?
Byte[] d = System.Text.Encoding.ASCII.GetBytes("num_ent=%25%2 2%24%5B%5F
%23%3DH%20%0A
");
Byte[] res = web.UploadData("http://myweb.com/phils.cfm", "POST", d);
Any ideas how to replicate the top request?

Jun 22 '07 #2
ph*************@googlemail.com wrote:
Hello All,

I'm trying to replicate a request to a web browser request (actual
domain is changed :D)

http://www.philip.com/phils.cfm?num_...F%23%3DH%20%0A
So far I can post to the above address, but I can't reverse engineer
the query string.

num_ent=%25%22%24%5B%5F%23%3DH%20%0A
This is my code, but I think I'm trying to encode an encoded string?
Byte[] d = System.Text.Encoding.ASCII.GetBytes("num_ent=%25%2 2%24%5B%5F
%23%3DH%20%0A
");
Byte[] res = web.UploadData("http://myweb.com/phils.cfm", "POST", d);
Any ideas how to replicate the top request?
If you are trying to replicate the request, why are you doing a POST
instead of a GET?

--
Göran Andersson
_____
http://www.guffa.com
Jun 22 '07 #3
If you have the code why not just see what the page is passing in stead of
trying to 'reverse engineer it'.
The page in your URL is a cold fusion page and the code isn't that hard to
read.

<ph*************@googlemail.comwrote in message
news:11**********************@q69g2000hsb.googlegr oups.com...
Hello All,

I'm trying to replicate a request to a web browser request (actual
domain is changed :D)

http://www.philip.com/phils.cfm?num_...F%23%3DH%20%0A
So far I can post to the above address, but I can't reverse engineer
the query string.

num_ent=%25%22%24%5B%5F%23%3DH%20%0A
This is my code, but I think I'm trying to encode an encoded string?
Byte[] d = System.Text.Encoding.ASCII.GetBytes("num_ent=%25%2 2%24%5B%5F
%23%3DH%20%0A
");
Byte[] res = web.UploadData("http://myweb.com/phils.cfm", "POST", d);
Any ideas how to replicate the top request?

Jun 25 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Phil Powell | last post by:
if (document.location.href.indexOf('?') >= 0) document.location.href = document.location.href.substring(0, document.location.href.indexOf('?')); if (document.location.href.indexOf('#') >= 0) {...
3
by: Dr. Oz | last post by:
Hi, I am trying to read in a query string from one page and build a link to another page based on the query string. Here's the code I am using to read in the query string: <script...
4
by: Alan Lane | last post by:
Hello world: I'm including both code and examples of query output. I appologize if that makes this message longer than it should be. Anyway, I need to change the query below into a pivot table...
0
by: starace | last post by:
I have designed a form that has 5 different list boxes where the selections within each are used as criteria in building a dynamic query. Some boxes are set for multiple selections but these list...
3
by: MLH | last post by:
Am repeating question with different subject heading, perhaps stating more clearly my problem... I have an A97 query (qryVehiclesNowners2) that has a table field in it named . Depending on the...
4
by: deko | last post by:
When using OutputTo with a query, the 'File name' window in the 'Output To' dialog gets populated with the name of the query by default. This makes the exported file self-describing if the query...
1
by: Oliver Bleckmann | last post by:
Damn, what's wrong here? CGI cgi; map<string,stringcgiParam = cgi.analyseCgiParam(); cout << cgiParam << endl; cout << cgiParam << endl; /////////////////////// #include <iostream>
2
by: =?Utf-8?B?Q2hyaXM=?= | last post by:
How can I run this query against a table in my Access database? I don't know hwo to use it in C#. In VB I would use .Recordset = "some sql statement". How do I do this in C#? //I get a vlaue...
1
by: TF | last post by:
This group came through for me last time so here we go again. My page shows paint colors, brand name, product code, etc in a gridview with the background matching the paint color. Several links on...
3
by: pbd22 | last post by:
Hi. I need some help with structuring my query strings. I have a form with a search bar and some links. Each link is a search type (such as "community"). The HREF for the link's anchor looks...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.