http post response id capture
-
Hi, I am sending a HTTP post request to external url and if it is successfull - the client server returns OK:12345 on web page. Now 12345 is an id and this is what i need to capture and store it as a variable to be used in my second script. Is there any way i can save this id as a variable or something. Thank You.
-
Hi, I am sending a HTTP post request to external url and if it is successfull - the client server returns OK:12345 on web page. Now 12345 is an id and this is what i need to capture and store it as a variable to be used in my second script. Is there any way i can save this id as a variable or something. Thank You.
-
Hi, I am sending a HTTP post request to external url and if it is successfull - the client server returns OK:12345 on web page. Now 12345 is an id and this is what i need to capture and store it as a variable to be used in my second script. Is there any way i can save this id as a variable or something. Thank You.
I agree with cjoki that this is cross site scripting. It's a pretty big security vulnerability to do such things and a lot of browsers (or security software/addons) will attempt to block it. However, do you have control over the 2nd server (i.e. can you set it up to send that id as a post back to your server?) If so I'd recommend doing that if you absolutely have to. If the OK:##### is just generated HTML I'm not sure how you would go about capturing that and storing it as a variable.
-
I agree with cjoki that this is cross site scripting. It's a pretty big security vulnerability to do such things and a lot of browsers (or security software/addons) will attempt to block it. However, do you have control over the 2nd server (i.e. can you set it up to send that id as a post back to your server?) If so I'd recommend doing that if you absolutely have to. If the OK:##### is just generated HTML I'm not sure how you would go about capturing that and storing it as a variable.