Redirect not working of POST

Hello,
The post method needs a redirection. It shows the url in DEBUG but response gives the same html page & not the new redirect one.
Here is the POST method:
    public String POST(String url, NameValuePair[] data) {
        String res = "";
        String URL =  ymailSinupUrl + "&_ylt=A9FJpMBjCkRHERcBDgCZ2PAI";
        NameValuePair formData[] = {
            new NameValuePair("u", _dsh), new NameValuePair("t", _t1),
            new NameValuePair("preferredcontent", this.preferLang), new NameValuePair("firstname", FirstName), new NameValuePair("secondname", LastName),  new NameValuePair("gender", this.gender), new NameValuePair("mm", this.bMm), new NameValuePair("dd", bDate), new NameValuePair("yyyy", bYyyy), new NameValuePair("country", loc), new NameValuePair("postalcode", postalCode),
            new NameValuePair("yahooid", Email), new NameValuePair("password", Passwrd), new NameValuePair("passwordconfirm", passwrdAgain),
            new NameValuePair("altemail", this.alterEmail), new NameValuePair("secquestion", selection), new NameValuePair("secquestionanswer", this.IdentifyAnswer), new NameValuePair("cword", newaccountcaptcha), new NameValuePair("cdata", this._continue),  new NameValuePair("tos_agreed", this.doAgree), new NameValuePair("IAgreeBtn", submitbutton)
        PostMethod postMethod = new PostMethod(URL);
        postMethod.setRequestBody(formData);
        int statusCode = 0;
        try {
            statusCode = client.executeMethod(hc, postMethod);
            System.out.println("Register Send: " + postMethod.getStatusLine().toString());
            postMethod.releaseConnection();
        }catch (HttpException e) {
            postMethod.releaseConnection();
            System.out.println("HTTP EXception : " + e.getMessage());
        }catch (IOException ie) {
            postMethod.releaseConnection();
            System.out.println("Error Exe Method - Post. Status Code = " + statusCode);
            ie.printStackTrace();
        // To find whether logon is suceeded is, retreive the cookie
        Cookie[] logoncookies = cookiespec.match(
            ymailSinupUrl, hc.getPort(), "/", false, client.getState().getCookies());
        System.out.println("Logon cookies:");   
        if (logoncookies.length == 0) {
            System.out.println("None");   
        } else {
            for (int i = 0; i < logoncookies.length; i++) {
                System.out.println("- " + logoncookies.toString());
// Save the url in lastUrl to keep track of
try {
lastUrl = postMethod.getURI().toString();
} catch (HttpException he) {
he.printStackTrace();
statusCode = postMethod.getStatusCode();
if ((statusCode == HttpStatus.SC_MOVED_TEMPORARILY) ||
(statusCode == HttpStatus.SC_MOVED_PERMANENTLY) ||
(statusCode == HttpStatus.SC_SEE_OTHER) ||
(statusCode == HttpStatus.SC_TEMPORARY_REDIRECT)) {
Header header = postMethod.getResponseHeader("Location");
if (header != null) {
String newUri = header.getValue();
System.out.println("Header Location = " + newUri);
if ((newUri == null) || (newUri.equals(""))) {
newUri = "/";
try {
// REQUIRES RE-DIRECT
System.out.println("RE DIRECTING TARGET .....");
GetMethod redirect = new GetMethod(h.getValue());
redirect.setRequestHeader("Cookie",logoncookies.toString());
client.executeMethod(redirect);
InputStream inputStream = null;
BufferedReader input = null;
try {
inputStream = redirect.getResponseBodyAsStream();
input = new BufferedReader(new InputStreamReader(inputStream));
String str;
StringBuffer response = new StringBuffer();
while((str = input.readLine()) != null) {
response.append((new StringBuilder()).append(str).append("\n").toString());
res = (new StringBuilder()).append(res).append(str).toString();
res = response.toString();
input.close();
} catch (IOException ie) {
redirect.releaseConnection();
ie.printStackTrace();
System.out.println("Redirect: " + redirect.getStatusLine().toString());
System.out.println("Redirect: " + redirect.getRequestHeader("path"));
// release any connection resources used by the method
redirect.releaseConnection();
} catch (Exception e) {
System.out.println("Exp in Redirecting:-" + e.getMessage());
e.printStackTrace();
} else {
System.out.println("Invalid Redirect...........");
System.exit(1);
System.out.println((new StringBuilder()).append("Status Code = ").append(statusCode).toString());
System.out.println("REPLY FROM POS = " + res);
return res;
tHE dEBUG of whole program is as follows:
init:
deps-jar:
Compiling 1 source file to E:\Trupti\Projects\Sol Edad\Yname Maker\build\classes
compile:
2007/11/22 15:11:07:090 IST [DEBUG] HttpClient - Java version: 1.6.0_02
2007/11/22 15:11:07:090 IST [DEBUG] HttpClient - Java vendor: Sun Microsystems Inc.
2007/11/22 15:11:07:090 IST [DEBUG] HttpClient - Java class path: E:\Trupti\JakartaApache\commons-codec-1.3.jar;E:\Trupti\JakartaApache\commons-httpclient-3.0.1.jar;E:\Trupti\JakartaApache\commons-lang-2.3.jar;E:\Trupti\JakartaApache\commons-logging-1.1.jar;E:\Trupti\Projects\Sol Edad\Yname Maker\build\classes
2007/11/22 15:11:07:090 IST [DEBUG] HttpClient - Operating system name: Windows XP
2007/11/22 15:11:07:090 IST [DEBUG] HttpClient - Operating system architecture: x86
2007/11/22 15:11:07:090 IST [DEBUG] HttpClient - Operating system version: 5.1
2007/11/22 15:11:07:215 IST [DEBUG] HttpClient - SUN 1.6: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores, JavaPolicy Policy; JavaLoginConfig Configuration)
2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunRsaSign 1.5: Sun RSA signature provider
2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunJSSE 1.6: Sun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunJCE 1.6: SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC)
2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunJGSS 1.0: Sun (Kerberos v5, SPNEGO)
2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunSASL 1.5: Sun SASL provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, EXTERNAL, PLAIN, CRAM-MD5; server mechanisms for: DIGEST-MD5, GSSAPI, CRAM-MD5)
2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - XMLDSig 1.0: XMLDSig (DOM XMLSignatureFactory; DOM KeyInfoFactory)
2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunPCSC 1.6: Sun PC/SC provider
2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunMSCAPI 1.6: Sun's Microsoft Crypto API provider
2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.useragent = Jakarta Commons-HttpClient/3.0.1
2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.1
2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.connection-manager.class = class org.apache.commons.httpclient.SimpleHttpConnectionManager
2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.cookie-policy = rfc2109
2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.element-charset = US-ASCII
2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.content-charset = ISO-8859-1
2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.method.retry-handler = [email protected]
2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z]
2007/11/22 15:11:07:246 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.0
2007/11/22 15:11:07:246 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.0
Landing on Signup Page
2007/11/22 15:11:07:246 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.cookie-policy = null
2007/11/22 15:11:07:293 IST [DEBUG] DefaultHttpParams - Set parameter http.method.rety-handler = [email protected]1b
2007/11/22 15:11:07:309 IST [DEBUG] HttpConnection - Open connection to edit.yahoo.com:443
2007/11/22 15:11:07:981 IST [DEBUG] header - >> "GET /registration?.intl=us&new=1&.done=http HTTP/1.0[\r][\n]"
2007/11/22 15:11:07:981 IST [DEBUG] HttpMethodBase - Adding Host request header
2007/11/22 15:11:08:012 IST [DEBUG] header - >> "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20061201 Firefox/2.0.0.3 (Ubuntu-feisty)[\r][\n]"
2007/11/22 15:11:08:012 IST [DEBUG] header - >> "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5[\r][\n]"
2007/11/22 15:11:08:012 IST [DEBUG] header - >> "Accept-Language: en-US[\r][\n]"
2007/11/22 15:11:08:012 IST [DEBUG] header - >> "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7[\r][\n]"
2007/11/22 15:11:08:012 IST [DEBUG] header - >> "Keep-Alive: 300[\r][\n]"
2007/11/22 15:11:08:012 IST [DEBUG] header - >> "Connection: keep-alive[\r][\n]"
2007/11/22 15:11:08:012 IST [DEBUG] header - >> "Host: edit.yahoo.com[\r][\n]"
2007/11/22 15:11:08:012 IST [DEBUG] header - >> "[\r][\n]"
2007/11/22 15:11:09:652 IST [DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
2007/11/22 15:11:09:652 IST [DEBUG] header - << "Date: Thu, 22 Nov 2007 09:41:08 GMT[\r][\n]"
2007/11/22 15:11:09:652 IST [DEBUG] header - << "Set-Cookie: B=ef69pm53kajlk&b=3&s=q3; expires=Tue, 02-Jun-2037 20:00:00 GMT; path=/; domain=.yahoo.com[\r][\n]"
2007/11/22 15:11:09:652 IST [DEBUG] header - << "P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"[\r][\n]"
2007/11/22 15:11:09:652 IST [DEBUG] header - << "Cache-control: no-cache[\r][\n]"
2007/11/22 15:11:09:652 IST [DEBUG] header - << "Pragma: no-cache[\r][\n]"
2007/11/22 15:11:09:652 IST [DEBUG] header - << "Expires: 0[\r][\n]"
2007/11/22 15:11:09:652 IST [DEBUG] header - << "Connection: close[\r][\n]"
2007/11/22 15:11:09:652 IST [DEBUG] header - << "Content-Type: text/html[\r][\n]"
2007/11/22 15:11:09:699 IST [DEBUG] HttpMethodBase - Cookie accepted: "$Version=0; B=ef69pm53kajlk&b=3&s=q3; $Path=/; $Domain=.yahoo.com"
Status Code = 200
Got RESPONSE :-  *****************************  HTML CODE ****************************************
Initial set of cookies:
Ini Cookies: None
Cookie = B = ef69pm53kajlk&b=3&s=q3
Form Action = /registration;_ylt=A9FJq3.0TkVHN80ADgCZ2PAI
Captcha URL - https://ab.login.yahoo.com/img/4.tPSeVZFemXYoQV0NICmWnGQ501fk1P1.dvnHUeJXY.iqAJA.in8Ne.4Q6e64fly4gkf3kRkQ--.jpg
Continue = 4.tPSeVZFemXYoQV0NICmWnGQ501fk1P1.dvnHUeJXY.iqAJA.in8Ne.4Q6e64fly4gkf3kRkQ--
DSH - U = c43neat3kajlk
T1 = 0kGqAw2P05N6ep_jQ3V10QQtjOlDOl1TAvxdpkLTjgc1qW0i_V89yZbsoWFsk9Wl4KUh9vEmpnQ4_qp68PmUEimVv9mFLdRDUju7iDo8fQQ1hhbeL48NxPQD5i_aaZ3Pi6TJXAhoEuTL3QUqRn9CsKi6s.hqPg32AK_DBTCEwY0-~B
Dracs =
POSTING FORM ....
2007/11/22 15:11:33:401 IST [DEBUG] HttpConnection - Open connection to edit.yahoo.com:443
2007/11/22 15:11:33:760 IST [DEBUG] header - >> "POST /registration?.intl=us&new=1&.done=http&_ylt=A9FJpMBjCkRHERcBDgCZ2PAI HTTP/1.0[\r][\n]"
2007/11/22 15:11:33:776 IST [DEBUG] HttpMethodBase - Adding Host request header
2007/11/22 15:11:33:792 IST [DEBUG] HttpMethodBase - Default charset used: ISO-8859-1
2007/11/22 15:11:33:995 IST [DEBUG] HttpMethodBase - Default charset used: ISO-8859-1
2007/11/22 15:11:34:182 IST [DEBUG] header - >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
2007/11/22 15:11:34:213 IST [DEBUG] header - >> "Host: edit.yahoo.com[\r][\n]"
2007/11/22 15:11:34:229 IST [DEBUG] header - >> "Cookie: $Version=0; B=ef69pm53kajlk&b=3&s=q3; $Path=/; $Domain=.yahoo.com[\r][\n]"
2007/11/22 15:11:34:245 IST [DEBUG] header - >> "Content-Length: 676[\r][\n]"
2007/11/22 15:11:34:276 IST [DEBUG] header - >> "Content-Type: application/x-www-form-urlencoded[\r][\n]"
2007/11/22 15:11:34:292 IST [DEBUG] header - >> "[\r][\n]"
2007/11/22 15:11:35:370 IST [DEBUG] EntityEnclosingMethod - Request body sent
2007/11/22 15:11:35:682 IST [DEBUG] header - << "HTTP/1.1 301 Moved Permanently[\r][\n]"
2007/11/22 15:11:35:729 IST [DEBUG] header - << "Date: Thu, 22 Nov 2007 09:41:35 GMT[\r][\n]"
2007/11/22 15:11:35:745 IST [DEBUG] header - << "Location: http://edit.yahoo.com/registration?.intl=us&new=1&.done=http[\r][\n]"
2007/11/22 15:11:35:760 IST [DEBUG] header - << "Connection: close[\r][\n]"
2007/11/22 15:11:35:776 IST [DEBUG] header - << "Content-Type: text/html[\r][\n]"
2007/11/22 15:11:35:791 IST [DEBUG] HttpMethodDirector - Redirect required
2007/11/22 15:11:35:791 IST [INFO] HttpMethodDirector - Redirect requested but followRedirects is disabled
Register Send: HTTP/1.1 301 Moved Permanently
2007/11/22 15:11:39:604 IST [DEBUG] HttpMethodBase - Should close connection in response to directive: close
2007/11/22 15:11:39:619 IST [DEBUG] HttpConnection - Releasing connection back to connection manager.
Logon cookies:
None
Header = http://edit.yahoo.com/registration?.intl=us&new=1&.done=http
RE DIRECTING TARGET .....
2007/11/22 15:12:02:384 IST [DEBUG] HttpConnection - Open connection to edit.yahoo.com:80
2007/11/22 15:12:02:727 IST [DEBUG] header - >> "GET /registration?.intl=us&new=1&.done=http HTTP/1.0[\r][\n]"
2007/11/22 15:12:02:743 IST [DEBUG] HttpMethodBase - Adding Host request header
2007/11/22 15:12:02:759 IST [DEBUG] header - >> "Cookie: [Lorg.apache.commons.httpclient.Cookie;@e4776b[\r][\n]"
2007/11/22 15:12:02:790 IST [DEBUG] header - >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
2007/11/22 15:12:02:821 IST [DEBUG] header - >> "Host: edit.yahoo.com[\r][\n]"
2007/11/22 15:12:02:837 IST [DEBUG] header - >> "Cookie: $Version=0; B=ef69pm53kajlk&b=3&s=q3; $Path=/; $Domain=.yahoo.com[\r][\n]"
2007/11/22 15:12:02:852 IST [DEBUG] header - >> "[\r][\n]"
2007/11/22 15:12:06:196 IST [DEBUG] header - << "HTTP/1.1 302 Found[\r][\n]"
2007/11/22 15:12:06:243 IST [DEBUG] header - << "Date: Thu, 22 Nov 2007 09:42:02 GMT[\r][\n]"
2007/11/22 15:12:06:290 IST [DEBUG] header - << "P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"[\r][\n]"
2007/11/22 15:12:06:305 IST [DEBUG] header - << "Location: https://edit.yahoo.com/registration?_intl=us&new=1&_done=http[\r][\n]"
2007/11/22 15:12:06:321 IST [DEBUG] header - << "Connection: close[\r][\n]"
2007/11/22 15:12:06:337 IST [DEBUG] header - << "Content-Type: text/html[\r][\n]"
<b>2007/11/22 15:12:06:352 IST [DEBUG] HttpMethodDirector - Redirect required
2007/11/22 15:12:06:368 IST [DEBUG] HttpMethodDirector - Redirect requested to location 'https://edit.yahoo.com/registration?_intl=us&new=1&_done=http'
2007/11/22 15:12:06:415 IST [DEBUG] HttpMethodDirector - Redirecting from 'http://edit.yahoo.com:80/registration' to 'https://edit.yahoo.com/registration</b>
2007/11/22 15:12:06:430 IST [DEBUG] HttpMethodDirector - Execute redirect 1 of 100
2007/11/22 15:12:06:446 IST [DEBUG] HttpMethodBase - Should close connection in response to directive: close
2007/11/22 15:12:06:462 IST [DEBUG] HttpConnection - Connection is locked.  Call to releaseConnection() ignored.
2007/11/22 15:12:06:462 IST [DEBUG] HttpConnection - Releasing connection back to connection manager.
2007/11/22 15:12:06:477 IST [DEBUG] HttpConnection - Open connection to edit.yahoo.com:443
2007/11/22 15:12:06:821 IST [DEBUG] header - >> "GET /registration?_intl=us&new=1&_done=http HTTP/1.1[\r][\n]"
2007/11/22 15:12:06:837 IST [DEBUG] HttpMethodBase - Adding Host request header
2007/11/22 15:12:06:868 IST [DEBUG] header - >> "Cookie: [Lorg.apache.commons.httpclient.Cookie;@e4776b[\r][\n]"
2007/11/22 15:12:06:899 IST [DEBUG] header - >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
2007/11/22 15:12:06:915 IST [DEBUG] header - >> "Host: edit.yahoo.com[\r][\n]"
2007/11/22 15:12:06:930 IST [DEBUG] header - >> "Cookie: $Version=0; B=ef69pm53kajlk&b=3&s=q3; $Path=/; $Domain=.yahoo.com[\r][\n]"
2007/11/22 15:12:06:962 IST [DEBUG] header - >> "[\r][\n]"
2007/11/22 15:12:09:493 IST [DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
2007/11/22 15:12:09:555 IST [DEBUG] header - << "Date: Thu, 22 Nov 2007 09:42:07 GMT[\r][\n]"
2007/11/22 15:12:09:571 IST [DEBUG] header - << "P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"[\r][\n]"
2007/11/22 15:12:09:602 IST [DEBUG] header - << "Cache-control: no-cache[\r][\n]"
2007/11/22 15:12:09:618 IST [DEBUG] header - << "Pragma: no-cache[\r][\n]"
2007/11/22 15:12:09:633 IST [DEBUG] header - << "Expires: 0[\r][\n]"
2007/11/22 15:12:09:649 IST [DEBUG] header - << "Connection: close[\r][\n]"
2007/11/22 15:12:09:665 IST [DEBUG] header - << "Transfer-Encoding: chunked[\r][\n]"
2007/11/22 15:12:09:680 IST [DEBUG] header - << "Content-Type: text/html[\r][\n]"
2007/11/22 15:12:28:523 IST [DEBUG] HttpMethodBase - Should close connection in response to directive: close
2007/11/22 15:12:28:523 IST [DEBUG] HttpConnection - Releasing connection back to connection manager.The bold text says, that the header has some reference to go to other site, but the redirect.getResponseBodyAsStream(); returns the same page as Get. What is that I am lacking.
Any help is highly appreciated. Please guide me, I am in need of help.
Thanks

cotton.m wrote:
Have you considered the possibility that the site in question doesn't want to support requests from your client and is thus forwarding you to oblivion?I mean I'd well consider dropping a Jakarta client trying to register on my web page. It smells of spam

Similar Messages

  • Windows 7 (Ent) Sp1 on server 2012 R2 HyperV, RFX USB redirection not working

    Hello, 
    I currently have  windows server 2012 R2 with HyperV installed. I have built two virtual machines. A windows 8.1 and Windows 7 sp1. Both are enterprise editions  
    For RemoteFX the hypervisor is using a Zotec GTX 760 GPU. It recognizes it and uses it to apply remoteFX adapter on my Windows 7 Sp1 VM. 
    As you are aware I do not need to use a GPU to enable RFX on my Windows 8.1 it can do this without the need of a GPU.    
    Using an RDP client( v8.1)  I can connect to my Windows 8.1 VM with a USB headset,memory Key or a printer and they all enumerate on the Virtual machine. The driver for each device installs 
    and I can use the device without any issues. 
    However this issue lies with the Windows 7 SP1 VM. I can connect to it via RDP( Same client)  but I cannot redirect any devices to it. I have installed the latest integration services available on the VM. I have ran all updates available.
    Because I have ran all updates the rdp version on the VM is running v8.1.
    Previous to installing the updates USBr still was not working
    I have enabled the following group polices under remote desktop services on the Windows 7 SP1 VM : 
    RDP 8.0 -- Enabled
    Configure RFX -- Enabled
    Is there a known issue with USB redirection not working on a Windows 7sp1 virtual machine hosted on server 2012 Hypervisor ??
    Many Thanks 
    Brian 

    Hi,
    According to the log above, I found that we run the script on both Server6 and Server7. Errors as below:
    Server6: Conversion is not supported in restricted language mode or a Data section.
    Server7: Couldn't figure out valid servers from the specified destination scope. Check your parameters and try again.
    Since we can only run the RollAlternateserviceAccountPassword.ps1 Script on CAS server, the script not works well if Server6 is MBX server.
    For Server7, based on the error message, it seems you still have no right to run the script/cmdlet.
    Please add your account to Organization Management Role group(ADUC->domain.com->Microsoft Exchange Security Groups) to test if possible.
    By the way, from Technet:
    You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Client Access Security" entry in the Client Access Permissions topic.
    Client Access Permissions
    http://technet.microsoft.com/en-us/library/dd638131.aspx
    Feel free to contact me if there is any problem.
    Thanks
    Mavis
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Mavis Huang
    TechNet Community Support

  • Windows 7 64 bit and X-Fi XtremeGamer - Bass Redirection Not Working (No Subwoofer)

    SWindows 7 64 bit and X-Fi XtremeGamer - Bass Redirection Not Working (No Subwoofer)% Greetings,
    Today I ugraded to Windows 7 Ultimate 64 bit edition and am having a problem with my 5. surround sound that previously worked perfectly in Windows Vista Ultimate.
    I am using an X-Fi XtremeGamer PCIe card and the problem is that I have full working surround sound, but the bass/ subwoofer isn't working.
    Previously in Vista I enabled bass redirection in the Creative Console and this would make the subwoofer work. In Windows 7 in the console there is a bass redirection option but it doesn't work. Also in the Creative Audio Control panel there is NO option for bass redirection either.
    Audio sounds tinny and I am 99.9% everything is set up correctley, I think this is a driver problem. At this moment I'm unsure if this issue plagues both the 32bit and 64bit versions of Windows 7 or just the 64bit version (since the console launcher is 32bit).
    Anyone had a similar problem and cracked it's Apart from this small glitch Windows 7 is great!
    Thanks!

    WRe: Windows 7 64 bit and X-Fi XtremeGamer - Bass Redirection Not Working (No Subwoofer)h heya, I have exactly the same problem.
    running 64-bit windows 7, X-Fi Xtreme Audio sound card, Trust 5. speakers.
    the bass used to work in XP because I could enable bass redirection and alter crossover frequency.
    these options are now no longer available in the windows 7 drivers (.4.90) and my bass is not working at all.
    it is very annoying, there has been no comment from creative than i can find because it only appears to happen to a small percentage of speakers.
    basically if someone from creative can't help fix the problem,?people with this problem?will unfortunately be forced to purchase a different brand of sound card because my speakers certainly aren't broken and work with the on-board sound fine.
    so if anyone else has the same problem or any advice on how to fix the problem, please comment.

  • Phone layout redirect not working - built and hosted on Muse

    Hi,
    I just added a tablet and phone layout to my Muse built desktop layout. The redirect works fine for the tablet but the desktop version comes up on my smartphone (Android Moto X). The webpage is http://www.elegantperfection.com/ I am hosting with Adobe so I just hit Publish - I do not use Publish to FTP. The settings in site properties are set to redirect; not sure if there is another step but it seems to work fine for the tablet. Any ideas as to why the redirect is not working? Thanks!

    Hi
    I see you have published the site to Business catalyst, in this case, could you please try to Re-publish the complete site again and check if that helps?

  • APPLE TV YOUTUBE IS NOT WORKING MANY POST BUT NO SUPPORT FROM APPLE STAFF

    In this forum and in many forums I have read posts regarding YouTube is not working.
    In my situation I have updated to the latest version of apple tv (2.3). My Leopard is up to date / itunes also.
    I am sharing internet connection in imac using Airport. Eveything works but YouTube does not work.
    I can log in with my YouTube username (this shows it can successfully connects and gets reponse from the server), BUT I can not view featured/most viewed etc. I only see spinning apple thing.
    I have been useing apple tv for 3 days and firts date YouTube worked. Also yesterday I did restart atv with menu + - for 6 seconds and relogged in to itunes and youtube worked again. I watched the whole night. I did also made some testing like rebooting atv again / turning of internet sharing and so on, magically it was working. I did get a good night sleep and in the morning when I tried again boom YouTube was broken again.
    My only request from apple tv tech guys to admit there is a problem with YouTube in Apple TV so we can stop trying to make it work.

    Well I kind of never give up and still trying.
    Today I figured out something, I was looged in to You Tube Account from apple tv. I clicked on History (on Youtube/History) and I could view the movies. When I click on one it start stream and downloads it. So there is no connection issue due to my hardware router etc. The only places I get the spinning wheel is when I try to use Youtube/Feature/Most Viewed/Top Rated/Search
    There is definitively connection to the server but why I can't navigate the above links mentioned.
    I would really appreciate any suggestions it does not matter if you know a fix or not but each feedback would help me solve this issue.

  • ISE posture redirect not working

    ISE v1.1.0.665, 3395 h/w.
    Single Admin/Monitor/Policy node.
    WS-C3560-48TS      12.2(55)SE5           C3560-IPBASEK9-M
    For Client Provisioning I created an authorisation policy as follows:
    download acl "ACL-POSTURE-REMEDIATION"
    apply url redirect "ACL-POSTURE-REDIRECT".
    "Debug radius" shows all this is downloaded to the switch but:
    - Redirect does not work.
    - dACL is not applied if the URL redirect is also configured.
    Wireshark on the client shows no direct.
    Attached file shows "debug radius" for various combinations of authorisation policy i.e. dACL only, Redirect only, dACL + Redirect.
    I've also attached screen shots of these policies and wireshark.

    Grant,
    It looks like you are changing the vlan after your client gets an ip address, it seems like the client gets an ip address of
    192.168.16.164 and you are changing the vlan over to 516. I wanted to know if that is there isnt an ip to vlan mismatch before you move forward. If 516 is quarantine vlan you may want to start all clients on that vlan and use dynamic vlan assignment through change of authorization once a client becomes compliant. The reason is is that you can use the web portal, or the nac agent to change the ip address once the vlan is changed.
    Thanks,
    Tarik Admani

  • Response.Redirect not working after printing CR

    Using Visual Studio 2010 sp1 with Crystal for VS 2010. Web app running as a web application in x86 mode  using .NET 4.0 framework.
    I recently created a CR with a sub-report and it previews and prints just fine.  However, after I PRINT the report, my code behind in the ASPX file is not recognized and thus fails. 
    For example, I created a 'Back' button to redirect the CR aspx back to the calling aspx file and it works just fine if I only view the report.  If I click on the printer icon located on the report viewer toolbar, the button stops working.  In fact, none of the code behind syntax is recognized and the aspx file just does a page_load. 
    I know this code works because it does work if I DON"T print the report:
        protected void btnBack_Click(object sender, EventArgs e)
            Response.Redirect("~/NewCase.aspx");
    I also have a 'Submit' button that changes the data parameters for the report and it works great but after I print the report, it will not work either.   (I've tried to upgrade to sp2 but I get an error with the installation process... so still trying to figure that out.)
        protected void btnSubmit_Click(object sender, EventArgs e)
            CrystalReportViewer1.RefreshReport();
    To summarize,  All the code I listed works fine if I do not try to print the report and just view it.  After I click the printer icon, the code stops being recognized and the aspx page just refreshes. 
    I've searched for help on the web for a couple of days to no avail; so I am thinking it must be some issue with the report viewer. 
    Any help would be greatly appreciated.
    Paul

    Not a problem. Something like what is described in the following should help (from the easiest to the more complicated):
    [1411677 - Blank first page in Visual Studio .NET application using the Crystal Reports DHTML viewer|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433313331333633373337%7D.do]
    [1625033 - Page navigation button does not work as required using Crystal Report .NET web application|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333633323335333033333333%7D.do]
    [1670041 - How to persist Crystal Reports using Cache in a custom .NET web application?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333633373330333033343331%7D.do]
    - Ludek

  • REST Web Service Output Parameter not working in POST Handler

    I've created a RESTful Web Service in Oracle Apex, using a POST method as "handler".   I've setup 11 input parameters which all work fine, it is my one output parameter that does not return successfully.
    Here is detail on the Output Paramter
    Name:  returns
    Bind Variable Name:  :returns
    Access Method:  OUT
    Source Type: Response
    Parameter Type:  String
    The actual source is a call to a pl/sql package that returns a value that I set :returns equal to (eg :returns := v_result).   I've tried this with Source Type Header and still the same result, 'no output'.
    I see APEX is calling wwv_flow_api.create_restful_param to generate the parameters (for importing), is there any documentation on this procedure?
    How can I get this output parameter to return something in the response?
    The request accepts a Json payload.
    Any help greatly appreciated
    Thanks,
    James

    Solved my own problem :returns does not work needs to be returns
    Does Not Work
    Name:  returns
    Bind Variable Name:  :returns
    Access Method:  OUT
    Source Type: Response
    Parameter Type:  String
    Does Work
    Name:  returns
    Bind Variable Name:  returns
    Access Method:  OUT
    Source Type: Response
    Parameter Type:  String

  • NAC L2-IP on 6500 . URL Redirection Not working

    Hi,
    We are testing NAC L2-IP on a Cat 6506 running 12.2(18)SXF9.
    When configuring for NAC L2-IP, the switch is able to download the required ACL
    entries. The HTTP Server is enabled in the Switch, however still the HTTP
    redirection is Not working.
    From the Client side, I can see the SYN packets going to port 80 but no
    response (Redirect etc) comes back from the switch.
    This is the Port-ACL
    10 permit udp any eq 21862 any
    11 permit icmp any any echo-reply
    20 permit udp any any eq bootps
    30 permit udp any any eq domain
    40 permit tcp any eq 3389 any
    50 deny ip any any
    This is the ACL as specified in the "url-redirect-acl" attribute
    70 deny tcp any host 10.140.4.116 eq www
    80 deny tcp any host 10.140.4.202 eq www
    90 deny tcp any host 10.1.194.15 eq www
    100 deny tcp any host 172.25.1.15 eq www
    110 permit tcp any any eq www
    Any ideas ?
    +++++++++++++++++
    show eou ip 10.192.99.27
    Address : 10.192.99.27
    MAC Address : 0006.5ba0.5705
    Interface : FastEthernet2/47
    AuthType : CLIENTLESS
    Audit Session ID : 0000002C1387D1FB0000000D0AC0631B
    PostureToken : -------
    Age(min) : 15
    URL Redirect : http://x.x.x/y
    URL Redirect ACL : redirect-policy
    ACL Name : #ACSACL#-IP-NAC_NoCTA_ACL-464b3186
    User Name : UNKNOWN USER
    Revalidation Period : 36000 Seconds
    Status Query Period : 300 Seconds
    Current State : CLIENTLESS
    ++++++++++++++++++++++++++++++++
    Exactly the Same configuration and Secure ACS configuration works for a 3560 Switch.
    Thanks,
    Naman

    Check this bug-id: CSCse02269.

  • Immediate login, custom redirect not working correctly

    I have a page with some conditional regions on it: show if user is logged in, else show something else. That sort of thing.
    This page is a tease to convince users to register so there a prominent "If you're a member, log in here, if not register for free."
    If someone clicks the Register button, they are taken to the registration page along with a url variable to identify the place they've just come from.
    The registration page has an Immediate Login trigger on it - which has always worked without a hitch.
    The registration page also has some conditional redirect triggers attached to the registration insert. The conditional redirect triggers GET the url variable being passed and if the condition is matched, the registration page sends them back where they came from - just like a login function would - registered and now logged in due to the immediate login trigger.
    This has all worked wonderfully until this past weekend when the whole system fell apart.
    For reasons unknown, the immediate login has stopped working. The redirect continues to work but people are correctly returned to the page with the logged in/logged out conditional regions but doing so without getting logged in, so of course they see the same stuff they just saw - stuff telling them to register or login.
    Immediate login continues from every other direction, just this particular set of redirections seems to totally wonk out the person returning from the registration page properly logged in.
    Anyone with any experience with this kind of thing? It's very essential to the way my web operation works.
    I deeply appreciate any interest or advice.

    Nope. This is the strangest thing I've encountered.
    After changing the conditional trigger to AFTER, it worked once. I logged out to test again. Now it's right back to not working. Shut down the browser too.
    As before, the redirect works as it's supposed to but the user gets redirected without being logged in.

  • ACE Redirect not working

    We have a ACE redirect configured on 3 physically seperate ACE modules with the following config. It works on one ACE Module and not on the other 2.
    Capture on the ACE and sniffer gives this error.R [bad tcp cksum 2d41!] ACE sends resets to the client. Anyone run into this issue?
    The software version is   system:    Version A2(1.0a) [build 3.0(0)A2(1.0a)
    rserver redirect Test
      webhost-redirection http://www.test.com
      inservice
    serverfarm redirect Test
      rserver Test
        inservice
    class-map match-any Test
      2 match virtual-address 192.168.10.10 tcp eq www
    policy-map type loadbalance first-match Test
      class class-default
        serverfarm Test
    class Test
        loadbalance vip inservice
        loadbalance policy Test
        loadbalance vip icmp-reply active

    Sorry maybe I didn't explain what I was getting at good enough...
    I guess I'm basically asking if there's potential for asymmetry at the site that's not working.
    For example.
    Say I have a load balanced server. It has two interfaces a "front end" and a "back end".  I manage the server on the backend from my laptop, for which the server has a route.  Now if I try to hit the public VIP of the LB, traffic is routed to the VIP, then to the server, but because the server already has a route to my laptop via the backend, it bypasses the load balancer on the return and replies directly to me, thus putting the flow out of sync and never completing the connection...
    Not saying that's it, but I've had so many asymmetry issues that are tough to figure out that It's usually one of the first things I rule out...
    It's possible if the site that's not working is local to you and the others aren't, this may be a potential issue??

  • SSL redirect not working?

    Hi,
    have anyone been able to get SSL redirect working in ical and address book server?
    In Apple documentation it says "redirecting ssl access redirects request for the http port and sends them to the https port". But it does not seems to work. Connecting to https port is working.
    Bernt
    Message was edited by: kenguru

    Regarding the redirect, I don't really understand why it's not possible. You can edit the non-SSL website in Web and add a 301 for /Wiki to redirect to https://myserver.com/wiki. In fact you can redirect the entire site to SSL - but that is problematic. I can understand why Mavericks server would be designed to automatically use SSL for wiki logins, if it's available. I only looked at redirects because this was not working. Without a redirect or with a redirect - I can login to Wiki via non-SSL or SSL. Where (specifically in which text file) are these redirects created using Server Admin written to? I can't find them in apache2/httpd.conf. Thanks again for your help.

  • Response.Redirect not working with parameters

    Response.Redirect("http://myurl/php/test.php?username=" + LoginHelper.userName + "&password=" + LoginHelper.password);
    Hi All,
    I am trying to redirect the user to different website with username and password. I am using the code above and passing user name and password as parameters.
    This works fine on IE when i run the code on my local machine.
    But when I push the code live this does not work, and user is not able to login.
    It is working fine on other browsers.
    Can someone please help, i am trying to wrap my head around this.
    Any help would be much appreciated. Thanks in advance.

    Hi SA260884,
    Do you use Response.Redirect function in a asp web application? If yes, please check this sample:
    https://support.microsoft.com/en-us/kb/307903?wa=wsignin1.0
    If not, please make a sample html for reproducing this issue.
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Response.redirect not working on IE when it is live but works fine on local.

     Response.Redirect("http://myurl/php/test.php?username="
    + LoginHelper.userName
    + "&password="
    + LoginHelper.password);
    Hi All,
    I am trying to redirect the user to different website with username and password. I am using the code above and passing user name and password as parameters.
    This works fine on IE when i run the code on my local machine.
    But when I push the code live this does not work, and user is not able to login.
    It is working fine for other browsers.
    Can someone please help, i am trying to wrap my head around this.
    Any help would be much appreciated. Thanks in advance.

    This is a problem specific to ASP.NET 4.0.  I would either recommend upgrading to .NET 4.5 if possible, otherwise I believe you might have to create a custom browser definition. There is a bug in .Net 4.0 for browser detection.

  • c:redirect not working?

    Hi folk,
    I'm new to JSP. We use JSTL to parse XML file at work.
    We use WebSphere and Java 1.4.x.
    It seem the <c:redirect> tag is not working. Someone point out somewhere, that this is a know bug using WebSphere. But I still have doubt.
    I'm more use to PHP and I was wondering if <c:redirect> tag work like the header() function in the sense that NO output should be send before using <c:redirect>?
    Those <c:redirect> work using a HTML header to make the redirection?
    Thank you!

    Most likely no output should be sent AFTER using <c:redirect/>
    This tag is equivalent of sendRedirect(java.lang.String location) method of javax.servlet.http.HttpServletResponse
    http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletResponse.html#sendRedirect(java.lang.String) :
    Sends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container will convert the relative URL to an absolute URL before sending the response to the client.
    If the response has already been committed, this method throws an IllegalStateException. After using this method, the response should be considered to be committed and should not be written to.

Maybe you are looking for