how to transfer parameters after redirect to index.html?

91 views Asked by At
GCDWebServer *_webServer = [[GCDWebServer alloc] init];
[_webServer addHandlerForMethod:@"GET"
                           path:@"/"
                   requestClass:[GCDWebServerRequest class] 
     processBlock:^GCDWebServerResponse(GCDWebServerRequest request){
                       NSURL *url = [NSURL URLWithString:@"index.html" relativeToURL:request.URL];
                       return [GCDWebServerResponse responseWithRedirect:url permanent:NO]; 
                   }];

I tried a lot of methods, but I couldn't pass the parameters。

after redirect to index.html, how to transfer parameters to index.html???

0

There are 0 answers